summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestClient/TestTools
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-08 15:35:23 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2013-08-09 10:26:31 -0400
commit48dea2ea0ce93b80484abac6875da4fdf5a20ce7 (patch)
treeee90f7fb0c593420a6c87801cd5aa4083a6568a9 /testsuite/Testsrc/Testlib/TestClient/TestTools
parentb228b295546aa82d2dfe588e3e52817e392ddb6a (diff)
downloadbcfg2-48dea2ea0ce93b80484abac6875da4fdf5a20ce7.tar.gz
bcfg2-48dea2ea0ce93b80484abac6875da4fdf5a20ce7.tar.bz2
bcfg2-48dea2ea0ce93b80484abac6875da4fdf5a20ce7.zip
testsuite: fixed unit tests for server plugins
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestClient/TestTools')
-rw-r--r--testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py5
-rw-r--r--testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py6
2 files changed, 8 insertions, 3 deletions
diff --git a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py
index 3d2e762ff..d9d8a26c6 100644
--- a/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py
+++ b/testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py
@@ -24,11 +24,14 @@ from TestTools.Test_init import TestTool
class TestPOSIXUsers(TestTool):
test_obj = POSIXUsers
- def get_obj(self, config=None):
+ def setUp(self):
+ TestTool.setUp(self)
set_setup_default('uid_whitelist')
set_setup_default('uid_blacklist')
set_setup_default('gid_whitelist')
set_setup_default('gid_blacklist')
+
+ def get_obj(self, config=None):
return TestTool.get_obj(self, config)
@patch("pwd.getpwall")
diff --git a/testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py b/testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py
index cbf8e4911..1bf073f81 100644
--- a/testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py
+++ b/testsuite/Testsrc/Testlib/TestClient/TestTools/Test_init.py
@@ -21,11 +21,13 @@ from common import *
class TestTool(Bcfg2TestCase):
test_obj = Tool
+ def setUp(self):
+ set_setup_default('command_timeout')
+ set_setup_default('interactive', False)
+
def get_obj(self, config=None):
if config is None:
config = lxml.etree.Element("Configuration")
- set_setup_default('command_timeout')
- set_setup_default('interactive', False)
execs = self.test_obj.__execs__
self.test_obj.__execs__ = []