summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-07-08 12:21:57 -0400
committerMichael DeHaan <mdehaan@redhat.com>2008-07-08 12:21:57 -0400
commit692807b31f32d79c90e202a8edca3508dbd03e6b (patch)
tree4e6dc47e8a7f61d2477b9837a527407e51ac6162 /test
parentcd7320d59ec7f6acc087507686a05711a59654bc (diff)
parent2db8f86f027509846d2bf0c0af801c902f124e78 (diff)
downloadfunc-692807b31f32d79c90e202a8edca3508dbd03e6b.tar.gz
func-692807b31f32d79c90e202a8edca3508dbd03e6b.tar.xz
func-692807b31f32d79c90e202a8edca3508dbd03e6b.zip
Merge branch 'makkalot_extreme'
Diffstat (limited to 'test')
-rw-r--r--test/unittest/test_client.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py
index eae7746..8d65176 100644
--- a/test/unittest/test_client.py
+++ b/test/unittest/test_client.py
@@ -388,8 +388,40 @@ class TestIptablesPort(BaseTest):
# doesnt have an inventory, so er... -akl
+class TestEchoTest(BaseTest):
+ module = "echo"
+
+ def test_run_string(self):
+ result=self.overlord.echo.run_string("heyman")
+ self.assert_on_fault(result)
+
+ def test_run_int(self):
+ result=self.overlord.echo.run_int(12)
+ self.assert_on_fault(result)
+ def test_run_float(self):
+ result=self.overlord.echo.run_float(12.0)
+ self.assert_on_fault(result)
+ def test_run_options(self):
+ result=self.overlord.echo.run_options("hehehh")
+ self.assert_on_fault(result)
+
+ def test_run_list(self):
+ result=self.overlord.echo.run_list(['one','two','three'])
+ self.assert_on_fault(result)
+
+ def test_run_hash(self):
+ result=self.overlord.echo.run_hash({'one':1,'two':2})
+ self.assert_on_fault(result)
+
+ def test_run_boolean(self):
+ result=self.overlord.echo.run_hash(True)
+ self.assert_on_fault(result)
+
+
+
+
class TestSystem(BaseTest):
module = "system"