fix(firecracker): restore agent home ownership at boot
test / integration-docker (pull_request) Successful in 20s
tracker-policy-pr / check-pr (pull_request) Successful in 20s
test / unit (pull_request) Successful in 40s
lint / lint (push) Successful in 55s
test / integration-firecracker (pull_request) Successful in 4m29s
test / coverage (pull_request) Failing after 16s
test / publish-infra (pull_request) Has been skipped
test / integration-docker (pull_request) Successful in 20s
tracker-policy-pr / check-pr (pull_request) Successful in 20s
test / unit (pull_request) Successful in 40s
lint / lint (push) Successful in 55s
test / integration-firecracker (pull_request) Successful in 4m29s
test / coverage (pull_request) Failing after 16s
test / publish-infra (pull_request) Has been skipped
This commit is contained in:
@@ -135,6 +135,8 @@ class TestProvisionGitUser(unittest.TestCase):
|
||||
if "/home/node/.config/git" in call.args[0]
|
||||
)
|
||||
self.assertEqual("root", user)
|
||||
self.assertIn("chown node:node /home/node", script)
|
||||
self.assertIn("chmod 755 /home/node", script)
|
||||
self.assertIn("mkdir -p /home/node/.config/git", script)
|
||||
self.assertIn("chown -R node:node /home/node/.config", script)
|
||||
self.assertIn("chmod -R u+rwX,go+rX /home/node/.config", script)
|
||||
|
||||
@@ -61,6 +61,12 @@ class TestNetpoolSlots(unittest.TestCase):
|
||||
|
||||
|
||||
class TestNetpoolRenderers(unittest.TestCase):
|
||||
def test_guest_init_restores_node_home_boundary(self):
|
||||
from bot_bottle.backend.firecracker import util
|
||||
|
||||
self.assertIn("chown node:node /home/node", util._GUEST_INIT)
|
||||
self.assertIn("chmod 755 /home/node", util._GUEST_INIT)
|
||||
|
||||
def test_nixos_module_is_non_invasive(self):
|
||||
# The NixOS module must NOT flip the host firewall backend or
|
||||
# hand interfaces to systemd-networkd; it brings the pool up via
|
||||
|
||||
Reference in New Issue
Block a user