BIND 10 trac2353, updated. 180a437742219f6266934738962663c65ab748f6 [2353] Test more component startup methods
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Nov 7 04:31:28 UTC 2012
The branch, trac2353 has been updated
via 180a437742219f6266934738962663c65ab748f6 (commit)
from 6210dae2a6749d8c1e328de433c91058fd54b756 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 180a437742219f6266934738962663c65ab748f6
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Nov 7 10:01:05 2012 +0530
[2353] Test more component startup methods
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/tests/bind10_test.py.in | 40 ++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 030c72b..20e8b1f 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -668,6 +668,18 @@ class MockBob(BoB):
self.get_process_exit_status_called = True
return (53, 0)
+class MockBob2(BoB):
+ def __init__(self):
+ BoB.__init__(self)
+ # Set which process has been started
+ self.started_process_name = None
+ self.started_process_args = None
+
+ def start_process(self, name, args, c_channel_env, port=None, address=None):
+ self.started_process_name = name
+ self.started_process_args = args
+ return None
+
class TestStartStopProcessesBob(unittest.TestCase):
"""
Check that the start_all_components method starts the right combination
@@ -1412,6 +1424,34 @@ class TestBossComponents(unittest.TestCase):
self.assertEqual({}, pi.env)
self.assertNotEqual(0, pi.pid)
+ # there is another test with this name (minus the digits), but both
+ # do different things.
+ def test_start_auth2(self):
+ '''Test that b10-auth is started.'''
+ bob = MockBob2()
+ bob.c_channel_env = {}
+ bob.start_auth()
+ self.assertEqual('b10-auth', bob.started_process_name)
+ self.assertEqual(['b10-auth'], bob.started_process_args)
+
+ # there is another test with this name (minus the digits), but both
+ # do different things.
+ def test_start_resolver2(self):
+ '''Test that b10-resolver is started.'''
+ bob = MockBob2()
+ bob.c_channel_env = {}
+ bob.start_resolver()
+ self.assertEqual('b10-resolver', bob.started_process_name)
+ self.assertEqual(['b10-resolver'], bob.started_process_args)
+
+ def test_start_cmdctl(self):
+ '''Test that b10-cmdctl is started.'''
+ bob = MockBob2()
+ bob.c_channel_env = {}
+ bob.start_cmdctl()
+ self.assertEqual('b10-cmdctl', bob.started_process_name)
+ self.assertEqual(['b10-cmdctl'], bob.started_process_args)
+
class SocketSrvTest(unittest.TestCase):
"""
This tests some methods of boss related to the unix domain sockets used
More information about the bind10-changes
mailing list