Merge pull request #45219 from gtmanfred/test_directory

test directory that doesn't exist
This commit is contained in:
Nicole Thomas 2017-12-30 13:11:33 -05:00 committed by GitHub
commit cc13a54e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -710,7 +710,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
'''
Test to ensure that a named directory is present and has the right perms
'''
name = '/etc/grub.conf'
name = '/etc/testdir'
user = 'salt'
group = 'saltstack'
@ -809,7 +809,7 @@ class TestFileState(TestCase, LoaderModuleMockMixin):
else:
comt = ('The following files will be changed:\n{0}:'
' directory - new\n'.format(name))
p_chg = {'/etc/grub.conf': {'directory': 'new'}}
p_chg = {'/etc/testdir': {'directory': 'new'}}
ret.update({
'comment': comt,
'result': None,