diff --git a/spec/classes/config_spec.rb b/spec/classes/config_spec.rb index e073230..3434079 100644 --- a/spec/classes/config_spec.rb +++ b/spec/classes/config_spec.rb @@ -32,21 +32,21 @@ describe 'nginx::config' do :path => "/etc/nginx", :ensure => 'directory', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/etc/nginx/conf.d").only_with( :path => '/etc/nginx/conf.d', :ensure => 'directory', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/etc/nginx/conf.mail.d").only_with( :path => '/etc/nginx/conf.mail.d', :ensure => 'directory', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/etc/nginx/conf.d/vhost_autogen.conf").with_ensure('absent') } @@ -54,30 +54,30 @@ describe 'nginx::config' do it { should contain_file("/var/nginx").with( :ensure => 'directory', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/var/nginx/client_body_temp").with( :ensure => 'directory', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/var/nginx/proxy_temp").with( :ensure => 'directory', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file('/etc/nginx/sites-enabled/default').with_ensure('absent') } it { should contain_file("/etc/nginx/nginx.conf").with( :ensure => 'file', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/etc/nginx/conf.d/proxy.conf").with( :ensure => 'file', :owner => 'root', - :group => '0', + :group => 'root', :mode => '0644' )} it { should contain_file("/tmp/nginx.d").with( diff --git a/spec/defines/resource_geo_spec.rb b/spec/defines/resource_geo_spec.rb index d2b9e77..81c7005 100644 --- a/spec/defines/resource_geo_spec.rb +++ b/spec/defines/resource_geo_spec.rb @@ -38,7 +38,7 @@ describe 'nginx::resource::geo' do it { should contain_file("/etc/nginx/conf.d/#{title}-geo.conf").with( { 'owner' => 'root', - 'group' => '0', + 'group' => 'root', 'mode' => '0644', 'ensure' => 'file', 'content' => /geo \$#{title}/, diff --git a/spec/defines/resource_mailhost_spec.rb b/spec/defines/resource_mailhost_spec.rb index 88542cf..e59adfd 100644 --- a/spec/defines/resource_mailhost_spec.rb +++ b/spec/defines/resource_mailhost_spec.rb @@ -30,7 +30,7 @@ describe 'nginx::resource::mailhost' do it { should contain_class("nginx::config") } it { should contain_concat("/etc/nginx/conf.mail.d/#{title}.conf").with({ 'owner' => 'root', - 'group' => '0', + 'group' => 'root', 'mode' => '0644', })} it { should contain_concat__fragment("#{title}-header") } diff --git a/spec/defines/resource_map_spec.rb b/spec/defines/resource_map_spec.rb index 71e2490..e8aa50c 100644 --- a/spec/defines/resource_map_spec.rb +++ b/spec/defines/resource_map_spec.rb @@ -38,7 +38,7 @@ describe 'nginx::resource::map' do it { should contain_file("/etc/nginx/conf.d/#{title}-map.conf").with( { 'owner' => 'root', - 'group' => '0', + 'group' => 'root', 'mode' => '0644', 'ensure' => 'file', 'content' => /map \$uri \$#{title}/, diff --git a/spec/defines/resource_vhost_spec.rb b/spec/defines/resource_vhost_spec.rb index fd1d238..81568e9 100644 --- a/spec/defines/resource_vhost_spec.rb +++ b/spec/defines/resource_vhost_spec.rb @@ -32,7 +32,7 @@ describe 'nginx::resource::vhost' do it { should contain_class("nginx::config") } it { should contain_concat("/etc/nginx/sites-available/#{title}.conf").with({ 'owner' => 'root', - 'group' => '0', + 'group' => 'root', 'mode' => '0644', })} it { should contain_concat__fragment("#{title}-header").with_content(%r{access_log[ ]+/var/log/nginx/www\.rspec\.example\.com\.access\.log}) }