Set spec group back to original

This commit is contained in:
Zach Leslie 2014-07-28 14:48:25 -07:00
parent b00614162d
commit 48e53ee10c
5 changed files with 12 additions and 12 deletions

View file

@ -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(

View file

@ -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}/,

View file

@ -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") }

View file

@ -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}/,

View file

@ -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}) }