mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix zypperpkg test after adding more success return codes
This commit is contained in:
parent
d71470a5ba
commit
cd7c54db6d
1 changed files with 6 additions and 1 deletions
|
@ -373,7 +373,12 @@ class ZypperTestCase(TestCase, LoaderModuleMockMixin):
|
|||
run_out = {"stderr": "", "stdout": "\n".join(ref_out), "retcode": 0}
|
||||
|
||||
zypper_mock = MagicMock(return_value=run_out)
|
||||
call_kwargs = {"output_loglevel": "trace", "python_shell": False, "env": {}}
|
||||
call_kwargs = {
|
||||
"output_loglevel": "trace",
|
||||
"python_shell": False,
|
||||
"env": {},
|
||||
"success_retcodes": [0, 6],
|
||||
}
|
||||
with patch.dict(zypper.__salt__, {"cmd.run_all": zypper_mock}):
|
||||
with patch.object(salt.utils.pkg, "clear_rtag", Mock()):
|
||||
result = zypper.refresh_db()
|
||||
|
|
Loading…
Add table
Reference in a new issue