mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
d595c7af36
commit
fd6597a2b4
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue