diff options
Diffstat (limited to 'tests/test_recipes.py')
| -rw-r--r-- | tests/test_recipes.py | 14 |
1 files changed, 14 insertions, 0 deletions
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"]: |
