|
@@ -142,13 +142,13 @@ class TestBoB(unittest.TestCase):
|
|
|
self.assertEqual(bob.cfg_start_auth, True)
|
|
|
self.assertEqual(bob.cfg_start_resolver, False)
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-class StartAllProcessesBob(BoB):
|
|
|
+class StartCheckBob(BoB):
|
|
|
def __init__(self):
|
|
|
BoB.__init__(self)
|
|
|
|
|
@@ -199,6 +199,9 @@ class StartAllProcessesBob(BoB):
|
|
|
def start_cmdctl(self, c_channel_env):
|
|
|
self.cmdctl = True
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
def stop_msgq(self):
|
|
|
self.msgq = False
|
|
|
|
|
@@ -285,8 +288,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
|
|
|
|
|
|
def test_start_none(self):
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -298,8 +301,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
|
|
|
|
|
|
def test_start_auth(self):
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -312,8 +315,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
|
|
|
|
|
|
def test_start_resolver(self):
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -326,8 +329,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
|
|
|
|
|
|
def test_start_both(self):
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -344,8 +347,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
to configuration changes.
|
|
|
"""
|
|
|
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -409,8 +412,8 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
"""
|
|
|
Tests that a process is started only once.
|
|
|
"""
|
|
|
-
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
|
|
@@ -436,7 +439,7 @@ class TestStartStopProcessesBob(unittest.TestCase):
|
|
|
Test that processes are not started by the config handler before
|
|
|
startup.
|
|
|
"""
|
|
|
- bob = StartAllProcessesBob()
|
|
|
+ bob = StartCheckBob()
|
|
|
self.check_preconditions(bob)
|
|
|
|
|
|
bob.start_auth = lambda: self.fail("Started auth again")
|