Patch ensure_run_as_normal_user() in unit tests
We should be able to run unit tests as any user. Change-Id: I76e0c98cf1b0bdf9e0b859ed74fe403dc4c5118d Resolves: rhbz#2109708
This commit is contained in:
parent
7d9de32076
commit
8b71cb9b09
@ -67,6 +67,7 @@ class TestOvercloudExternalUpdateRun(fakes.TestOvercloudExternalUpdateRun):
|
||||
|
||||
self.check_parser(self.cmd, argslist, verifylist)
|
||||
|
||||
@mock.patch('tripleoclient.utils.ensure_run_as_normal_user')
|
||||
@mock.patch('tripleoclient.workflows.deployment.config_download')
|
||||
@mock.patch('tripleoclient.utils.get_default_working_dir', autospec=True)
|
||||
@mock.patch('tripleoclient.workflows.deployment.snapshot_dir',
|
||||
@ -78,7 +79,8 @@ class TestOvercloudExternalUpdateRun(fakes.TestOvercloudExternalUpdateRun):
|
||||
mock_run_ansible_playbook,
|
||||
mock_snapshot_dir,
|
||||
mock_get_default_working_dir,
|
||||
mock_config_download):
|
||||
mock_config_download,
|
||||
mock_usercheck):
|
||||
argslist = ['--yes', '--refresh']
|
||||
verifylist = [
|
||||
('refresh', True)
|
||||
|
Loading…
Reference in New Issue
Block a user