|
@@ -7,6 +7,16 @@ describe 'nginx::service' do
|
|
let(:pre_condition) { "class {'nginx':}" }
|
|
let(:pre_condition) { "class {'nginx':}" }
|
|
|
|
|
|
it { is_expected.to compile.with_all_deps }
|
|
it { is_expected.to compile.with_all_deps }
|
|
|
|
+
|
|
|
|
+ case os_facts[:osfamily]
|
|
|
|
+ when 'Debian'
|
|
|
|
+ it do
|
|
|
|
+ is_expected.to contain_service('nginx').with(
|
|
|
|
+ 'ensure' => 'running',
|
|
|
|
+ 'enable' => true,
|
|
|
|
+ )
|
|
|
|
+ end
|
|
|
|
+ end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|