Merge "do not expect to match the scheme://host:port/ part"

This commit is contained in:
Zuul 2018-11-20 16:35:50 +00:00 committed by Gerrit Code Review
commit 5c6fa36de0
1 changed files with 2 additions and 2 deletions

View File

@ -109,12 +109,12 @@ class BaseInfraOptimTest(test.BaseTestCase):
def validate_self_link(self, resource, uuid, link):
"""Check whether the given self link formatted correctly."""
expected_link = "{base}/{pref}/{res}/{uuid}".format(
base=self.client.base_url,
base='https?://[^/]*',
pref=self.client.URI_PREFIX,
res=resource,
uuid=uuid
)
self.assertEqual(expected_link, link)
self.assertRegex(link, expected_link)
def assert_expected(self, expected, actual,
keys=('created_at', 'updated_at', 'deleted_at')):