File tree 3 files changed +0
-14
lines changed
3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 46
46
expect ( apply_manifest ( pp ) . exit_code ) . not_to eq ( 1 )
47
47
end
48
48
49
- it 'system puppet_* metric services should be active or inactive' do
50
- run_shell ( 'systemctl list-units --type=service | grep "puppet_system.*metrics"' ) do |r |
51
- expect ( r . stdout ) . to match ( %r{activ} )
52
- end
53
- end
54
-
55
49
context 'system timers are running' do
56
50
it { expect ( service ( 'puppet_system_cpu-metrics.timer' ) ) . to be_running }
57
51
it { expect ( service ( 'puppet_system_cpu-tidy.timer' ) ) . to be_running }
@@ -82,12 +76,6 @@ class { 'puppet_metrics_collector::system':
82
76
expect ( package ( 'sysstat' ) ) . to be_installed
83
77
end
84
78
85
- it 'system puppet_* metric services should be active or inactive' do
86
- run_shell ( 'systemctl list-units --type=service | grep "puppet_system.*metrics"' ) do |r |
87
- expect ( r . stdout ) . to match ( %r{activ} )
88
- end
89
- end
90
-
91
79
context 'system timers are running' do
92
80
it { expect ( service ( 'puppet_system_cpu-metrics.timer' ) ) . to be_running }
93
81
it { expect ( service ( 'puppet_system_cpu-tidy.timer' ) ) . to be_running }
Original file line number Diff line number Diff line change 1
1
<%- | String $service | -%>
2
2
[Unit]
3
3
Description=Timer to tidy Puppet metrics
4
- Requires=<%= $service %>-tidy.service
5
4
6
5
[Timer]
7
6
OnCalendar=*-*-* 00:00:00
Original file line number Diff line number Diff line change 1
1
<%- | String $service, String $minute | -%>
2
2
[Unit]
3
3
Description=Timer to collect Puppet metrics
4
- Requires=<%= $service %>-metrics.service
5
4
6
5
[Timer]
7
6
OnCalendar=*-*-* *:<%= $minute %>
You can’t perform that action at this time.
0 commit comments