more stringent tests for config file resources
This commit is contained in:
parent
26d904c946
commit
58b5f52685
1 changed files with 6 additions and 3 deletions
|
@ -28,19 +28,22 @@ describe 'nginx::config' do
|
|||
|
||||
it { should contain_class("nginx::params") }
|
||||
|
||||
it { should contain_file("/etc/nginx").with(
|
||||
it { should contain_file("/etc/nginx").only_with(
|
||||
:path => "/etc/nginx",
|
||||
:ensure => 'directory',
|
||||
:owner => 'root',
|
||||
:group => 'root',
|
||||
:mode => '0644'
|
||||
)}
|
||||
it { should contain_file("/etc/nginx/conf.d").with(
|
||||
it { should contain_file("/etc/nginx/conf.d").only_with(
|
||||
:path => '/etc/nginx/conf.d',
|
||||
:ensure => 'directory',
|
||||
:owner => 'root',
|
||||
:group => 'root',
|
||||
:mode => '0644'
|
||||
)}
|
||||
it { should contain_file("/etc/nginx/conf.mail.d").with(
|
||||
it { should contain_file("/etc/nginx/conf.mail.d").only_with(
|
||||
:path => '/etc/nginx/conf.mail.d',
|
||||
:ensure => 'directory',
|
||||
:owner => 'root',
|
||||
:group => 'root',
|
||||
|
|
Loading…
Reference in a new issue