mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #45153 from terminalmage/fix-docker-unit-test
Update mocking in unit.grains.test_core.CoreGrainsTestCase.test_docker_virtual
This commit is contained in:
commit
14c8979cb6
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ SwapTotal: 4789244 kB'''
|
|||
'10:memory{0}a_long_sha256sum'.format(cgroup_substr)
|
||||
log.debug(
|
||||
'Testing Docker cgroup substring \'%s\'', cgroup_substr)
|
||||
with patch('salt.utils.fopen', mock_open(read_data=cgroup_data)):
|
||||
with patch('salt.utils.files.fopen', mock_open(read_data=cgroup_data)):
|
||||
self.assertEqual(
|
||||
core._virtual({'kernel': 'Linux'}).get('virtual_subtype'),
|
||||
'Docker'
|
||||
|
|
Loading…
Add table
Reference in a new issue