From 975248f571e3b3e69d2ef9574fc0126c54d5423a Mon Sep 17 00:00:00 2001 From: Aurelien Lourot Date: Fri, 17 Apr 2020 13:13:39 +0200 Subject: [PATCH] Add test_106_compute_catalog_endpoints --- zaza/openstack/charm_tests/nova/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zaza/openstack/charm_tests/nova/tests.py b/zaza/openstack/charm_tests/nova/tests.py index 800fce0..9fac67b 100644 --- a/zaza/openstack/charm_tests/nova/tests.py +++ b/zaza/openstack/charm_tests/nova/tests.py @@ -203,6 +203,18 @@ class NovaCloudController(test_utils.OpenStackBaseTest): # Just checking it's not raising and returning an iterable: assert(len(nova.servers.list()) >= 0) + def test_106_compute_catalog_endpoints(self): + """Verify that the compute endpoints are present in the catalog.""" + overcloud_auth = openstack_utils.get_overcloud_auth() + keystone_client = openstack_utils.get_keystone_client( + overcloud_auth) + actual_endpoints = keystone_client.service_catalog.get_endpoints() + logging.info('Checking compute endpoints...') + actual_compute_interfaces = [endpoint['interface'] for endpoint in + actual_endpoints['compute']] + for expected_interface in ('internal', 'admin', 'public'): + assert(expected_interface in actual_compute_interfaces) + def test_220_nova_metadata_propagate(self): """Verify that the vendor-data settings are propagated.