test directory that doesn't exist

sometimes /etc/grub.conf exists and is a symlink to /boot/grub/grub.conf, and
this won't do the right thing.
This commit is contained in:
Daniel Wallace 2017-12-29 10:17:02 -07:00
parent 4f3b089e0e
commit d20fc93625
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

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,