Change versioned_endpoint to endpoint_uri

In this context, the word versioned_endpoint is confusing.

Change-Id: I89b6faadbb3666e867e61d321e1cc096589589cf
This commit is contained in:
Monty Taylor 2017-04-18 11:53:55 -05:00
parent b459c8de5c
commit 4c67e76376
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

View File

@ -423,9 +423,9 @@ class RequestsMockTestCase(BaseTestCase):
# close to just getting rid of ksc anyway, just put in a version match
occ_version = du_version.StrictVersion(occ.__version__)
if occ_version > du_version.StrictVersion('1.26.0'):
versioned_endpoint = 'https://identity.example.com/v2.0'
endpoint_uri = 'https://identity.example.com/v2.0'
else:
versioned_endpoint = 'https://identity.example.com/'
endpoint_uri = 'https://identity.example.com/'
self.__do_register_uris([
dict(method='GET', uri='https://identity.example.com/',
@ -434,7 +434,7 @@ class RequestsMockTestCase(BaseTestCase):
text=open(os.path.join(
self.fixtures_directory, 'catalog-v2.json'), 'r').read()
),
dict(method='GET', uri=versioned_endpoint,
dict(method='GET', uri=endpoint_uri,
text=open(self.discovery_json, 'r').read()),
dict(method='GET', uri='https://identity.example.com/',
text=open(self.discovery_json, 'r').read())