diff options
author | boucherv <valentin.boucher@orange.com> | 2016-07-27 14:57:58 +0200 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-07-28 08:40:29 +0000 |
commit | 932e23880ad613098ba518dc1fbf84e65db434a9 (patch) | |
tree | 58f5c2a998a2044da4496dacd0bcc15a5081c7b0 /testcases/features | |
parent | 1a45b9e69357bfd6228cd862d48d709101fd40da (diff) |
Add endpoint type support on functest
By default public endpoint was used but now you can use internal or admin
JIRA: FUNCTEST-387
Change-Id: If1adaa88248d379ad6d74b20f2dffd76278b67b9
Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'testcases/features')
-rwxr-xr-x | testcases/features/promise.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/testcases/features/promise.py b/testcases/features/promise.py index 564f94709..74c1ad782 100755 --- a/testcases/features/promise.py +++ b/testcases/features/promise.py @@ -18,7 +18,6 @@ import time import functest.utils.functest_logger as ft_logger import functest.utils.functest_utils as functest_utils import functest.utils.openstack_utils as openstack_utils -import glanceclient.client as glclient import keystoneclient.v2_0.client as ksclient from neutronclient.v2_0 import client as ntclient import novaclient.client as nvclient @@ -134,9 +133,7 @@ def main(): "project_id": TENANT_NAME, }) - glance_endpoint = keystone.service_catalog.url_for( - service_type='image', endpoint_type='publicURL') - glance = glclient.Client(1, glance_endpoint, token=keystone.auth_token) + glance = openstack_utils.get_glance_client() nova = nvclient.Client("2", **nv_creds) logger.info("Creating image '%s' from '%s'..." % (IMAGE_NAME, |