Force public identity endpoint in Shaker 25/59625/1
authorCédric Ollivier <ollivier.cedric@gmail.com>
Mon, 9 Jul 2018 16:54:23 +0000 (18:54 +0200)
committerCédric Ollivier <ollivier.cedric@gmail.com>
Mon, 9 Jul 2018 16:56:41 +0000 (18:56 +0200)
It conforms with our VNFs by calling public endpoints (from VM).
It fixes by design the issues when testing Compass [1] due to
export OS_INTERFACE=publicURL

[1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/180/consoleFull

Change-Id: Iea15506ba5910879d05e61cfd20da2c0878e569b
Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
functest/opnfv_tests/openstack/shaker/shaker.py

index 9899bb3..cc8f9ec 100644 (file)
@@ -54,7 +54,7 @@ class Shaker(singlevm.SingleVm2):
         keystone_id = self.orig_cloud.search_services('keystone')[0].id
         self.__logger.debug("keystone id: %s", keystone_id)
         endpoint = self.orig_cloud.search_endpoints(
-            filters={'interface': os.environ.get('OS_INTERFACE', 'public'),
+            filters={'interface': 'public',
                      'service_id': keystone_id})[0].url
         self.__logger.debug("keystone endpoint: %s", endpoint)
         self.orig_cloud.grant_role(