BIND 10 trac2353, updated. 71739287e490437d2f1278e02ba9232afa925a48 [2353] Add test for BoB.kill_started_components()
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Nov 6 07:36:45 UTC 2012
The branch, trac2353 has been updated
via 71739287e490437d2f1278e02ba9232afa925a48 (commit)
from 7ba306a2e14dd31e1bf8350c2d27b9741af7e101 (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 71739287e490437d2f1278e02ba9232afa925a48
Author: Mukund Sivaraman <muks at isc.org>
Date: Tue Nov 6 13:06:36 2012 +0530
[2353] Add test for BoB.kill_started_components()
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/tests/bind10_test.py.in | 14 ++++++++++++++
1 file changed, 14 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 3ab8bff..8a0c607 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -951,6 +951,9 @@ class MockComponent:
def failed(self, status):
return False
+ def kill(self, status):
+ return
+
class TestBossCmd(unittest.TestCase):
def test_ping(self):
"""
@@ -1370,6 +1373,17 @@ class TestBossComponents(unittest.TestCase):
# now, we should as the mock component.failed() returns False
self.assertTrue(component in bob.components_to_restart)
+ def test_kill_started_components(self):
+ '''Test that started components are killed.'''
+ bob = MockBob()
+ bob.runnable = True
+ component = MockComponent('test', 53, 'Test')
+ bob.components[53] = component
+
+ self.assertEqual([[53, 'test', 'Test']], bob.get_processes())
+ bob.kill_started_components()
+ self.assertEqual([], bob.get_processes())
+
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