diff options
author | Adrian Likins <alikins@redhat.com> | 2008-03-28 15:29:10 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2008-03-28 15:29:10 -0400 |
commit | a2d5d31e8d0cec0e700d6a95e3b912e607bbf84f (patch) | |
tree | 9d1d4b2bfe8922dce5beb5f1cb5c4335affa5671 /test | |
parent | 4054792be014a9b7373a5b909f5052ab271c2307 (diff) | |
download | third_party-func-a2d5d31e8d0cec0e700d6a95e3b912e607bbf84f.tar.gz third_party-func-a2d5d31e8d0cec0e700d6a95e3b912e607bbf84f.tar.xz third_party-func-a2d5d31e8d0cec0e700d6a95e3b912e607bbf84f.zip |
add iptables module from Krzysztof A. Adamski <krzysztofa@gmail.com>
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
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest/test_client.py | 25 |
1 files changed, 25 insertions, 0 deletions
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): |