mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix remaining file state integration tests (py3)
This commit is contained in:
parent
90bd56063e
commit
6844251315
2 changed files with 6 additions and 6 deletions
|
@ -2919,7 +2919,7 @@ def directory(name,
|
|||
perms: full_control
|
||||
- win_inheritance: False
|
||||
'''
|
||||
name = os.path.expanduser(name)
|
||||
name = os.path.normcase(os.path.expanduser(name))
|
||||
ret = {'name': name,
|
||||
'changes': {},
|
||||
'pchanges': {},
|
||||
|
@ -3405,7 +3405,7 @@ def recurse(name,
|
|||
)
|
||||
kwargs.pop('env')
|
||||
|
||||
name = os.path.expanduser(sdecode(name))
|
||||
name = os.path.normcase(os.path.expanduser(sdecode(name)))
|
||||
|
||||
user = _test_owner(kwargs, user=user)
|
||||
if salt.utils.is_windows():
|
||||
|
|
|
@ -267,7 +267,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
|
||||
if IS_WINDOWS:
|
||||
expected = 'The \'mode\' option is not supported on Windows'
|
||||
self.assertEqual(ret[ret.keys()[0]]['comment'], expected)
|
||||
self.assertEqual(ret[list(ret.keys())[0]]['comment'], expected)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
return
|
||||
|
||||
|
@ -303,7 +303,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
|
||||
if IS_WINDOWS:
|
||||
expected = 'The \'mode\' option is not supported on Windows'
|
||||
self.assertEqual(ret[ret.keys()[0]]['comment'], expected)
|
||||
self.assertEqual(ret[list(ret.keys())[0]]['comment'], expected)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
return
|
||||
|
||||
|
@ -335,7 +335,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
|
||||
if IS_WINDOWS:
|
||||
expected = 'The \'mode\' option is not supported on Windows'
|
||||
self.assertEqual(ret[ret.keys()[0]]['comment'], expected)
|
||||
self.assertEqual(ret[list(ret.keys())[0]]['comment'], expected)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
return
|
||||
|
||||
|
@ -418,7 +418,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
)
|
||||
if IS_WINDOWS:
|
||||
expected = 'The \'mode\' option is not supported on Windows'
|
||||
self.assertEqual(ret[ret.keys()[0]]['comment'], expected)
|
||||
self.assertEqual(ret[list(ret.keys())[0]]['comment'], expected)
|
||||
self.assertSaltFalseReturn(ret)
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue