diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-17 13:19:54 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-07-17 14:09:24 +0200 |
commit | 8e96ddfb6a6548a9a7a9b4a686e01378425a1cd8 (patch) | |
tree | 4cc932a83942c8c8d97e32e298341ae868d373c1 /functest/core/tenantnetwork.py | |
parent | 6812e47c760a202c920271bcc87b3d183b2f61e1 (diff) |
Leverage cloudify_ims on Cloudify
It also defines 2 new methods to avoid duplicating code:
- TenantNetwork1.get_public_auth_url()
- VmReady1.publish_image_alt()
Shaker and Tempest are updated as well.
Change-Id: Ie9095c57c580b95f067d5a8275ad71818b4df335
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core/tenantnetwork.py')
-rw-r--r-- | functest/core/tenantnetwork.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functest/core/tenantnetwork.py b/functest/core/tenantnetwork.py index 286aef67e..678b9b590 100644 --- a/functest/core/tenantnetwork.py +++ b/functest/core/tenantnetwork.py @@ -175,6 +175,15 @@ class TenantNetwork1(testcase.TestCase): role = cloud.get_role(member.lower()) return role + @staticmethod + def get_public_auth_url(cloud): + """Get Keystone public endpoint""" + keystone_id = cloud.search_services('keystone')[0].id + endpoint = cloud.search_endpoints( + filters={'interface': 'public', + 'service_id': keystone_id})[0].url + return endpoint + def _create_network_ressources(self): assert self.cloud assert self.ext_net |