Fix the invalid if statement

This is to fix the invalid if statement like "if 'interface' == 'internal'"

Change-Id: I714d7b5e9dbb2e76c6061419af58fc76817185a9
This commit is contained in:
zhufl 2020-11-17 17:11:32 +08:00
parent 599ef07775
commit fc36c34724
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ class TestEndpoints(base.KeystoneBaseFunctionalTest):
found = True
self.assertEqual(service['id'], e['service_id'])
if 'interface' in e:
if 'interface' == 'internal':
if e['interface'] == 'internal':
self.assertEqual('http://internal.test/', e['url'])
elif 'interface' == 'public':
elif e['interface'] == 'public':
self.assertEqual('http://public.test/', e['url'])
else:
self.assertEqual('http://public.test/',