Fix 2 more tests

This commit is contained in:
twangboy 2017-09-13 17:19:54 -06:00
parent d5dd42aebe
commit d7241d004f
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -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})