diff options
author | Brian Elliott <bdelliott@gmail.com> | 2013-05-09 17:24:29 +0000 |
---|---|---|
committer | Brian Elliott <bdelliott@gmail.com> | 2013-05-09 17:26:26 +0000 |
commit | a4a67899fb3a510ea8d7672cb42b3834758821a1 (patch) | |
tree | c8c4fc051be11fdfb69af0e72c005f26ef10f796 /tests/unit/test_service.py | |
parent | 3e0114f570d97c47b1b8eefce0bcd27146098b8d (diff) | |
download | oslo-a4a67899fb3a510ea8d7672cb42b3834758821a1.tar.gz oslo-a4a67899fb3a510ea8d7672cb42b3834758821a1.tar.xz oslo-a4a67899fb3a510ea8d7672cb42b3834758821a1.zip |
Pass backdoor_port to services being launched
Change-Id: I7227648f9b9e1d3e30f4b2d03964ee5c625a1024
Diffstat (limited to 'tests/unit/test_service.py')
-rw-r--r-- | tests/unit/test_service.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/unit/test_service.py b/tests/unit/test_service.py index 77cf7ff..b7ba4f7 100644 --- a/tests/unit/test_service.py +++ b/tests/unit/test_service.py @@ -190,3 +190,13 @@ class ServiceLauncherTest(utils.BaseTestCase): status = self._reap_test() self.assertTrue(os.WIFEXITED(status)) self.assertEqual(os.WEXITSTATUS(status), 0) + + +class LauncherTest(utils.BaseTestCase): + def test_backdoor_port(self): + # backdoor port should get passed to the service being launched + self.config(backdoor_port=1234) + svc = service.Service() + launcher = service.launch(svc) + self.assertEqual(1234, svc.backdoor_port) + launcher.stop() |