Fix identity v3 ext discovery
Change-Id: I98e46bde0c07be761197ddebaa981af2480e2268
This commit is contained in:
parent
130db00711
commit
82a82b7b41
@ -59,7 +59,6 @@ class IdentityService(VersionedService):
|
||||
As keystone V3 uses a JSON Home to store the extensions.
|
||||
This method implements a different discovery method.
|
||||
|
||||
:param keystone_v3_url: Keystone V3 auth url
|
||||
:return: A list with the discovered extensions
|
||||
"""
|
||||
try:
|
||||
@ -70,7 +69,7 @@ class IdentityService(VersionedService):
|
||||
LOG.error("Request on service '%s' with url '%s' failed",
|
||||
'identity', self.service_url)
|
||||
raise re
|
||||
ext_h = 'http://docs.openstack.org/api/openstack-identity/3/ext/'
|
||||
ext_h = 'https://docs.openstack.org/api/openstack-identity/3/ext/'
|
||||
res = [x for x in json.loads(r.content)['resources'].keys()]
|
||||
ext = [ex for ex in res if 'ext' in ex]
|
||||
ext = [str(e).replace(ext_h, '').split('/')[0] for e in ext]
|
||||
|
@ -202,7 +202,7 @@ class BaseServiceTest(base.BaseTestCase):
|
||||
)
|
||||
|
||||
class FakeRequestResponse(object):
|
||||
URL = 'http://docs.openstack.org/api/openstack-identity/3/ext/'
|
||||
URL = 'https://docs.openstack.org/api/openstack-identity/3/ext/'
|
||||
FAKE_V3_EXTENSIONS = (
|
||||
{
|
||||
'resources': {
|
||||
|
Loading…
Reference in New Issue
Block a user