From 9b10ec5537630fb38f8ece6de146e1b884b58ddf Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 5 Sep 2012 11:29:42 -0400 Subject: improving plugin development docs --- testsuite/Testsrc/Testlib/TestServer/TestPlugin.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'testsuite/Testsrc') diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin.py index 0581fb1ea..cbeec965c 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin.py @@ -215,6 +215,12 @@ class TestMetadata(Bcfg2TestCase): def get_obj(self): return self.test_obj() + def test_AuthenticateConnection(self): + m = self.get_obj() + self.assertRaises(NotImplementedError, + m.AuthenticateConnection, + None, None, None, (None, None)) + def test_get_initial_metadata(self): m = self.get_obj() self.assertRaises(NotImplementedError, @@ -241,12 +247,20 @@ class TestConnector(Bcfg2TestCase): class TestProbing(Bcfg2TestCase): - """ placeholder """ + test_obj = Probing + + def get_obj(self): + return self.test_obj() + def test_GetProbes(self): - pass + p = self.get_obj() + self.assertRaises(NotImplementedError, + p.GetProbes, None) def test_ReceiveData(self): - pass + p = self.get_obj() + self.assertRaises(NotImplementedError, + p.ReceiveData, None, None) class TestStatistics(TestPlugin): -- cgit v1.2.3-1-g7c22