removed configtest command
This commit is contained in:
parent
914f92a49a
commit
2be9096e34
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ describe 'nginx::service' do
|
|||
|
||||
let :params do {
|
||||
:configtest_enable => false,
|
||||
:service_restart => '/etc/init.d/nginx configtest && /etc/init.d/nginx relaod',
|
||||
:service_restart => '/etc/init.d/nginx relaod',
|
||||
:service_ensure => 'running',
|
||||
:service_name => 'nginx',
|
||||
} end
|
||||
|
@ -24,11 +24,11 @@ describe 'nginx::service' do
|
|||
describe "when configtest_enable => true" do
|
||||
let :params do {
|
||||
:configtest_enable => true,
|
||||
:service_restart => '/etc/init.d/nginx configtest && /etc/init.d/nginx relaod',
|
||||
:service_restart => '/etc/init.d/nginx relaod',
|
||||
:service_ensure => 'running',
|
||||
:service_name => 'nginx',
|
||||
} end
|
||||
it { is_expected.to contain_service('nginx').with_restart('/etc/init.d/nginx configtest && /etc/init.d/nginx reload') }
|
||||
it { is_expected.to contain_service('nginx').with_restart('/etc/init.d/nginx reload') }
|
||||
|
||||
context "when service_restart => 'a restart command'" do
|
||||
let :params do {
|
||||
|
|
Loading…
Reference in a new issue