summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/api/openstack/compute/contrib/test_hosts.py2
-rw-r--r--nova/tests/integrated/api_samples/os-hosts/hosts-list-resp.xml.tpl12
2 files changed, 8 insertions, 6 deletions
diff --git a/nova/tests/api/openstack/compute/contrib/test_hosts.py b/nova/tests/api/openstack/compute/contrib/test_hosts.py
index d10f97d28..60e8f6e1f 100644
--- a/nova/tests/api/openstack/compute/contrib/test_hosts.py
+++ b/nova/tests/api/openstack/compute/contrib/test_hosts.py
@@ -370,6 +370,8 @@ class HostSerializerTest(test.TestCase):
tree[i].get('host_name'))
self.assertEqual(fake_hosts.HOST_LIST[i]['service'],
tree[i].get('service'))
+ self.assertEqual(fake_hosts.HOST_LIST[i]['zone'],
+ tree[i].get('zone'))
def test_update_serializer_with_status(self):
exemplar = dict(host='host_c1', status='enabled')
diff --git a/nova/tests/integrated/api_samples/os-hosts/hosts-list-resp.xml.tpl b/nova/tests/integrated/api_samples/os-hosts/hosts-list-resp.xml.tpl
index 4e9d3195d..b5971738c 100644
--- a/nova/tests/integrated/api_samples/os-hosts/hosts-list-resp.xml.tpl
+++ b/nova/tests/integrated/api_samples/os-hosts/hosts-list-resp.xml.tpl
@@ -1,9 +1,9 @@
<?xml version='1.0' encoding='UTF-8'?>
<hosts>
- <host host_name="%(host_name)s" service="compute"/>
- <host host_name="%(host_name)s" service="cert"/>
- <host host_name="%(host_name)s" service="network"/>
- <host host_name="%(host_name)s" service="scheduler"/>
- <host host_name="%(host_name)s" service="conductor"/>
- <host host_name="%(host_name)s" service="cells"/>
+ <host host_name="%(host_name)s" service="compute" zone="nova"/>
+ <host host_name="%(host_name)s" service="cert" zone="internal"/>
+ <host host_name="%(host_name)s" service="network" zone="internal"/>
+ <host host_name="%(host_name)s" service="scheduler" zone="internal"/>
+ <host host_name="%(host_name)s" service="conductor" zone="internal"/>
+ <host host_name="%(host_name)s" service="cells" zone="internal"/>
</hosts>