summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorMatthew Treinish <treinish@linux.vnet.ibm.com>2012-12-19 17:03:14 -0500
committerMatthew Treinish <treinish@linux.vnet.ibm.com>2012-12-19 17:11:31 -0500
commit06d791b663c276d403c5aaa4fc7e1e05fc39d2f3 (patch)
tree96e6eb9874c94cebbe6fd2f3acfdfd0e2b409f18 /nova/tests
parent276fded4972a357db40f7a72e1bf67d4f846a95a (diff)
Add get_backdoor_port to scheduler.
This adds a get_backdoor_port function to the scheduler service which enables returning the eventlet_backdoor port from rpc for the service. Change-Id: Ib88e2a9e709d5240722027c94e6762b4a3bd918c
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_rpcapi.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/tests/scheduler/test_rpcapi.py b/nova/tests/scheduler/test_rpcapi.py
index b1174559a..da7652a50 100644
--- a/nova/tests/scheduler/test_rpcapi.py
+++ b/nova/tests/scheduler/test_rpcapi.py
@@ -37,6 +37,9 @@ class SchedulerRpcAPITestCase(test.TestCase):
expected_msg = rpcapi.make_msg(method, **kwargs)
expected_msg['version'] = expected_version
+ if method == 'get_backdoor_port':
+ del expected_msg['args']['host']
+
self.fake_args = None
self.fake_kwargs = None
@@ -84,3 +87,7 @@ class SchedulerRpcAPITestCase(test.TestCase):
rpc_method='fanout_cast', service_name='fake_name',
host='fake_host', capabilities='fake_capabilities',
version='2.4')
+
+ def test_get_backdoor_port(self):
+ self._test_scheduler_api('get_backdoor_port', rpc_method='call',
+ host='fake_host', version='2.5')