mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix mock for opensuse
Opensuse needs a run_all in here, mock it so we don't see an error, and still test the docker stuff
This commit is contained in:
parent
808e26e69a
commit
bd3cb47fa7
1 changed files with 5 additions and 4 deletions
|
@ -493,10 +493,11 @@ PATCHLEVEL = 3
|
|||
log.debug(
|
||||
'Testing Docker cgroup substring \'%s\'', cgroup_substr)
|
||||
with patch('salt.utils.fopen', mock_open(read_data=cgroup_data)):
|
||||
self.assertEqual(
|
||||
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
|
||||
'Docker'
|
||||
)
|
||||
with patch.dict(core.__salt__, {'cmd.run_all': MagicMock()}):
|
||||
self.assertEqual(
|
||||
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
|
||||
'Docker'
|
||||
)
|
||||
|
||||
def _check_ipaddress(self, value, ip_v):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue