mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix 2 more tests
This commit is contained in:
parent
d5dd42aebe
commit
d7241d004f
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,7 @@ def _test_managed_file_mode_keep_helper(testcase, local=False):
|
|||
|
||||
# Get the current mode so that we can put the file back the way we
|
||||
# found it when we're done.
|
||||
grail_fs_mode = testcase.run_function('file.get_mode', [grail_fs_path])
|
||||
grail_fs_mode = int(testcase.run_function('file.get_mode', [grail_fs_path]))
|
||||
initial_mode = 504 # 0770 octal
|
||||
new_mode_1 = 384 # 0600 octal
|
||||
new_mode_2 = 420 # 0644 octal
|
||||
|
@ -1964,6 +1964,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
|
|||
fp_.write(
|
||||
os.linesep.join(sls_template).format(testcase_filedest))
|
||||
|
||||
ret = self.run_function('state.sls', mods='issue-8343')
|
||||
for name, step in six.iteritems(ret):
|
||||
self.assertSaltTrueReturn({name: step})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue