From 90fbf4e69a9044a6281f4a1f5361b572c0188ba0 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 22 Sep 2026 13:57:08 +0100 Subject: Add optional NetworkManager bonding with timed recovery --- tests/test_recipes.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test_recipes.py') diff --git a/tests/test_recipes.py b/tests/test_recipes.py index 772833d..df04899 100644 --- a/tests/test_recipes.py +++ b/tests/test_recipes.py @@ -42,6 +42,20 @@ class RecipeTests(unittest.TestCase): self.assertNotEqual(result.returncode, 0) self.assertNotIn("UNEXPECTED", result.stdout) + def test_bond_recipes_reject_non_corporate_roles(self): + for role in ("host", "vm"): + for recipe in ( + "canonical-bond-activate", + "canonical-bond-keep", + "canonical-bond-rollback", + ): + result = self.invoke(role, recipe) + self.assertNotEqual(result.returncode, 0) + self.assertNotIn("UNEXPECTED", result.stdout) + result = self.invoke(role, "canonical-bond-prepare", "Wired connection 1") + self.assertNotEqual(result.returncode, 0) + self.assertNotIn("UNEXPECTED", result.stdout) + def test_non_host_maintenance_only_uses_chezmoi(self): for role in ["vm", "canonical"]: for recipe in ["diff", "merge", "re-add"]: -- cgit v1.3.1