@@ -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',
@@ -95,27 +80,6 @@ describe '<%= metadata.name %>' do
95
80
it { should contain_file('<%= metadata . name %> .dir').with_force('true') }
96
81
end
97
82
98
- describe "#{osfamily} service restart on config file change (default)" do
99
- let(:facts) {{
100
- :osfamily => osfamily,
101
- }}
102
- it 'should automatically restart the service when files change' do
103
- should contain_file('<%= metadata . name %> .conf').with_notify('Service[<%= metadata . name %> ]')
104
- end
105
- end
106
-
107
- describe "#{osfamily} service restart disabling on config file change" do
108
- let(:params) { {
109
- :config_file_notify => '',
110
- } }
111
- let(:facts) {{
112
- :osfamily => osfamily,
113
- }}
114
- it 'should automatically restart the service when files change' do
115
- should contain_file('<%= metadata . name %> .conf').without_notify
116
- end
117
- end
118
-
119
83
end
120
84
end
121
85
0 commit comments