summaryrefslogtreecommitdiff
path: root/nova/tests/unit/fake_hosts.py
diff options
context:
space:
mode:
authorDan Smith <dansmith@redhat.com>2015-02-13 09:12:57 -0800
committerDan Smith <dansmith@redhat.com>2015-03-04 10:32:45 -0800
commit97e6e33a25e7f3df0385b54e58c21d98cb165ac1 (patch)
treeed576059991a41fdd175cd9c6a62aa9e7661ea9f /nova/tests/unit/fake_hosts.py
parent30159255bf5ec89c9092eb0273c292d44724e1f1 (diff)
downloadnova-97e6e33a25e7f3df0385b54e58c21d98cb165ac1.tar.gz
Change queries for network services to use binary instead of topic
This makes nova/network bits use get_by_host_and_binary instead of querying by RPC topic to locate nova-network services. Change-Id: Id3e61440fab7f774dd62423b072c3c727b4ed853
Diffstat (limited to 'nova/tests/unit/fake_hosts.py')
-rw-r--r--nova/tests/unit/fake_hosts.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/tests/unit/fake_hosts.py b/nova/tests/unit/fake_hosts.py
index 78fa414ac7..bd091fa4e5 100644
--- a/nova/tests/unit/fake_hosts.py
+++ b/nova/tests/unit/fake_hosts.py
@@ -33,5 +33,7 @@ HOST_LIST_NOVA_ZONE = [
service_base = test_service.fake_service
SERVICES_LIST = [
- dict(service_base, host='host_c1', topic='compute'),
- dict(service_base, host='host_c2', topic='compute')]
+ dict(service_base, host='host_c1', topic='compute',
+ binary='nova-compute'),
+ dict(service_base, host='host_c2', topic='compute',
+ binary='nova-compute')]