diff options
author | mh <mh@immerda.ch> | 2016-01-29 19:14:12 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-01-29 19:14:12 +0100 |
commit | b478a4eb162d5a3a117c44ef9b49f20462facf50 (patch) | |
tree | f05d4b648ef8a892879983a5d5d035e12d2feacf /spec/classes | |
parent | 8ca75f6d074b83ee48d9ce713cdb3e28e57d2cf8 (diff) |
also manage directory as puppet user needs write perms as well
Diffstat (limited to 'spec/classes')
-rw-r--r-- | spec/classes/yaml_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/classes/yaml_spec.rb b/spec/classes/yaml_spec.rb index c5912f2..53ee507 100644 --- a/spec/classes/yaml_spec.rb +++ b/spec/classes/yaml_spec.rb @@ -27,6 +27,12 @@ store_options: adapter_options: :file: /var/lib/trocla/trocla_data.yaml ") } + it { should contain_file('/var/lib/trocla').with( + :ensure => 'directory', + :owner => 'puppet', + :group => 0, + :mode => '0600' + )} it { should contain_file('/var/lib/trocla/trocla_data.yaml').with( :ensure => 'file', :owner => 'puppet', |