Commit ec4581da authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2353] Check if msgq_socket_file is carried over in BoB.startup()

parent 70db0c50
......@@ -1965,6 +1965,7 @@ class TestBossComponents(unittest.TestCase):
self.assertTrue(bob.started)
self.assertFalse(bob.killed)
self.assertTrue(bob.runnable)
self.assertEqual({}, bob.c_channel_env)
# Case where starting components fails. We check that
# kill_started_components() is called right after, and
......@@ -1976,6 +1977,13 @@ class TestBossComponents(unittest.TestCase):
self.assertTrue(bob.started)
self.assertTrue(bob.killed)
self.assertFalse(bob.runnable)
self.assertEqual({}, bob.c_channel_env)
# Check if msgq_socket_file is carried over
bob = MockBobStartup(False)
bob.msgq_socket_file = 'foo'
r = bob.startup()
self.assertEqual({'BIND10_MSGQ_SOCKET_FILE': 'foo'}, bob.c_channel_env)
class SocketSrvTest(unittest.TestCase):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment