Use auth_strategy=noauth in functional tests
The way we mock it got broken by keystonemiddleware==2.3.1 Change-Id: I8ae8eae94329138ec840fa27ff49ec62a151bf5e Closes-Bug: #1503377
This commit is contained in:
parent
6631b8ffab
commit
96c4e94b35
|
@ -45,6 +45,7 @@ manage_firewall = False
|
|||
enable_setting_ipmi_credentials = True
|
||||
[DEFAULT]
|
||||
debug = True
|
||||
auth_strategy = noauth
|
||||
[database]
|
||||
connection = sqlite:///%(db_file)s
|
||||
"""
|
||||
|
@ -364,7 +365,6 @@ def mocked_server():
|
|||
content = CONF % {'db_file': db_file}
|
||||
fp.write(content.encode('utf-8'))
|
||||
|
||||
with mock.patch.object(utils, 'check_auth'):
|
||||
with mock.patch.object(utils, 'get_client'):
|
||||
dbsync.main(args=['--config-file', conf_file, 'upgrade'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue