From 3956133f14f9d832a665a7fb5f42d3f299d325d3 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 24 Aug 2012 11:12:10 -0400 Subject: added some basic plugin interface tests to allow inheritance and forward-compat for future tests --- testsuite/Testlib/TestServer/TestPlugin.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'testsuite/Testlib/TestServer/TestPlugin.py') diff --git a/testsuite/Testlib/TestServer/TestPlugin.py b/testsuite/Testlib/TestServer/TestPlugin.py index f62d6f0f0..d2af78729 100644 --- a/testsuite/Testlib/TestServer/TestPlugin.py +++ b/testsuite/Testlib/TestServer/TestPlugin.py @@ -227,17 +227,28 @@ class TestMetadata(Bcfg2TestCase): class TestConnector(Bcfg2TestCase): """ placeholder """ - pass + def test_get_additional_groups(self): + pass + + def test_get_additional_data(self): + pass class TestProbing(Bcfg2TestCase): """ placeholder """ - pass + def test_GetProbes(self): + pass + + def test_ReceiveData(self): + pass class TestStatistics(TestPlugin): test_obj = Statistics + def test_process_statistics(self): + pass + class TestThreadedStatistics(TestStatistics): test_obj = ThreadedStatistics @@ -395,6 +406,8 @@ class TestThreadedStatistics(TestStatistics): @patch("copy.copy", Mock(side_effect=lambda x: x)) @patch("Bcfg2.Server.Plugin.ThreadedStatistics.run", Mock()) def test_process_statistics(self): + TestStatistics.test_process_statistics(self) + core = Mock() ts = self.get_obj(core) ts.work_queue = Mock() -- cgit v1.2.3-1-g7c22