From a2d5d31e8d0cec0e700d6a95e3b912e607bbf84f Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 28 Mar 2008 15:29:10 -0400 Subject: add iptables module from Krzysztof A. Adamski add some basic test cases to the unittests (needs expanded) add file info to setup.py add Makefiles to minion/modules/netapp/* and minion/modules/iptables/* to make make clean work --- test/unittest/test_client.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test') diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py index 5e885cd..acf242c 100644 --- a/test/unittest/test_client.py +++ b/test/unittest/test_client.py @@ -284,6 +284,31 @@ class TestYum(BaseTest): result = self.overlord.yumcmd.check_update() self.assert_on_fault(result) +class TestIptables(BaseTest): + module = "iptables" + + def test_dump(self): + result = self.overlord.iptables.dump() + + # at the moment, we dont set anything up + # to verify, so this is just a basic + # "does it crash" test + + def test_policy(self): + result = self.overlord.iptables.policy() + + +class TestIptablesPort(BaseTest): + module = "iptables.port" + + def test_inventory(self): + results = self.overlord.iptables.port.inventory() + # doesnt have an inventory, so er... -akl + + + + + class TestSystem(BaseTest): module = "system" def test_list_methods(self): -- cgit