mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
Add owner-aware OCI tmpfs mounts
This commit is contained in:
@@ -53,10 +53,13 @@ class RuntimeHomeInstallerContractTests(unittest.TestCase):
|
||||
self.assertIn('set_runtime_environment HOME "$home"', self.source)
|
||||
|
||||
def test_home_fallback_runs_after_runtime_user_is_applied(self):
|
||||
self.assertIn(
|
||||
"apply_extra_hosts\napply_installer_profile\nensure_runtime_home\napply_rlimits",
|
||||
self.source,
|
||||
)
|
||||
profile = self.source.index("apply_installer_profile\n", self.source.index("apply_extra_hosts\n"))
|
||||
tmpfs = self.source.index("--render-tmpfs \"$DEPLOYMENT_FILE\" \"$CONF\"", profile)
|
||||
home = self.source.index("ensure_runtime_home\n", tmpfs)
|
||||
limits = self.source.index("apply_rlimits\n", home)
|
||||
self.assertLess(profile, tmpfs)
|
||||
self.assertLess(tmpfs, home)
|
||||
self.assertLess(home, limits)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user