Fix get_endpoint 25/37025/1
authorLinda Wang <wangwulin@huawei.com>
Thu, 6 Jul 2017 16:13:55 +0000 (16:13 +0000)
committerLinda Wang <wangwulin@huawei.com>
Thu, 6 Jul 2017 16:14:41 +0000 (16:14 +0000)
Different endpoint urls can be searched with 'admin', 'internal' and
'public' interface.

Change-Id: I57207826d0dc2c18ce0e6a0abf09140f639f64ba
Signed-off-by: Linda Wang <wangwulin@huawei.com>
functest/utils/openstack_utils.py

index f8719bf..4f8d6c3 100644 (file)
@@ -175,11 +175,11 @@ def get_session_auth(other_creds={}):
     return auth
 
 
-def get_endpoint(service_type, endpoint_type='publicURL'):
+def get_endpoint(service_type, interface='public'):
     auth = get_session_auth()
     return get_session().get_endpoint(auth=auth,
                                       service_type=service_type,
-                                      endpoint_type=endpoint_type)
+                                      interface=interface)
 
 
 def get_session(other_creds={}):