diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-05 19:30:02 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-09-12 16:22:28 +0200 |
commit | b90204c1ed3380671cd5f887e35fd2e74700eaee (patch) | |
tree | c2303300b37e58ff4184506908217d6da3ac82b9 /testsuite/Testsrc/Testlib/TestServer/TestPlugins | |
parent | dc300858b22c3d3d09b0e0976406e88e9ca8ade3 (diff) | |
download | bcfg2-b90204c1ed3380671cd5f887e35fd2e74700eaee.tar.gz bcfg2-b90204c1ed3380671cd5f887e35fd2e74700eaee.tar.bz2 bcfg2-b90204c1ed3380671cd5f887e35fd2e74700eaee.zip |
testsuite: Use TestDatabaseBacked for Probes, too
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py index 07d624b29..9729a0449 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py @@ -201,7 +201,7 @@ group-specific""" assert False, "Strange probe found in get_probe_data() return" -class TestProbes(TestPlugin): +class TestProbes(TestDatabaseBacked): test_obj = Probes test_xdata = lxml.etree.Element("test") @@ -241,7 +241,7 @@ group: group:with:colons self.datastore = None Bcfg2.Options.setup.repository = datastore - def get_obj(self): + def get_obj(self, core=None): if not Bcfg2.Options.setup.probes_db: # actually use a real datastore so we can read and write # probed.xml @@ -251,7 +251,7 @@ group: group:with:colons datadir = os.path.join(self.datastore, self.test_obj.name) if not os.path.exists(datadir): os.makedirs(datadir) - return TestPlugin.get_obj(self) + return TestPlugin.get_obj(self, core) def test__init(self): if Bcfg2.Options.setup.probes_db: |