@@ -10,7 +10,6 @@ describe '<%= metadata.name %>' do
10
10
:osfamily = > osfamily,
11
11
}}
12
12
it { should contain_package('<%= metadata . name %> ').with_ensure('present') }
13
- it { should contain_service('<%= metadata . name %> ').with_ensure('running') }
14
13
end
15
14
16
15
describe "#{osfamily} Installation of a specific package version" do
@@ -31,23 +30,9 @@ describe '<%= metadata.name %>' do
31
30
:osfamily => osfamily,
32
31
}}
33
32
it 'should remove Package[<%= metadata . name %> ]' do should contain_package('<%= metadata . name %> ').with_ensure('absent') end
34
- it 'should stop Service[<%= metadata . name %> ]' do should contain_service('<%= metadata . name %> ').with_ensure('stopped') end
35
- it 'should not manage at boot Service[<%= metadata . name %> ]' do should contain_service('<%= metadata . name %> ').with_enable(nil) end
36
33
it 'should remove <%= metadata . name %> configuration file' do should contain_file('<%= metadata . name %> .conf').with_ensure('absent') end
37
34
end
38
35
39
- describe "#{osfamily} Service disabling" do
40
- let(:params) { {
41
- :service_ensure => 'stopped',
42
- :service_enable => false,
43
- } }
44
- let(:facts) {{
45
- :osfamily => osfamily,
46
- }}
47
- it 'should stop Service[<%= metadata . name %> ]' do should contain_service('<%= metadata . name %> ').with_ensure('stopped') end
48
- it 'should not enable at boot Service[<%= metadata . name %> ]' do should contain_service('<%= metadata . name %> ').with_enable('false') end
49
- end
50
-
51
36
describe "#{osfamily} Configuration via custom template" do
52
37
let(:params) { {
53
38
:config_file_template => '<%= metadata . name %> /spec.conf',
@@ -85,27 +70,6 @@ describe '<%= metadata.name %>' do
85
70
it { should contain_file('<%= metadata . name %> .dir').with_force('true') }
86
71
end
87
72
88
- describe "#{osfamily} Service restart on config file change (default)" do
89
- let(:facts) {{
90
- :osfamily => osfamily,
91
- }}
92
- it 'should automatically restart the service when files change' do
93
- should contain_file('<%= metadata . name %> .conf').with_notify('Service[<%= metadata . name %> ]')
94
- end
95
- end
96
-
97
- describe "#{osfamily} Service restart disabling on config file change" do
98
- let(:params) { {
99
- :config_file_notify => '',
100
- } }
101
- let(:facts) {{
102
- :osfamily => osfamily,
103
- }}
104
- it 'should automatically restart the service when files change' do
105
- should contain_file('<%= metadata . name %> .conf').without_notify
106
- end
107
- end
108
-
109
73
end
110
74
end
111
75
0 commit comments