File tree Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Expand file tree Collapse file tree 3 files changed +0
-14
lines changed Original file line number Diff line number Diff line change 4646 expect ( apply_manifest ( pp ) . exit_code ) . not_to eq ( 1 )
4747 end
4848
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-
5549 context 'system timers are running' do
5650 it { expect ( service ( 'puppet_system_cpu-metrics.timer' ) ) . to be_running }
5751 it { expect ( service ( 'puppet_system_cpu-tidy.timer' ) ) . to be_running }
@@ -82,12 +76,6 @@ class { 'puppet_metrics_collector::system':
8276 expect ( package ( 'sysstat' ) ) . to be_installed
8377 end
8478
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-
9179 context 'system timers are running' do
9280 it { expect ( service ( 'puppet_system_cpu-metrics.timer' ) ) . to be_running }
9381 it { expect ( service ( 'puppet_system_cpu-tidy.timer' ) ) . to be_running }
Original file line number Diff line number Diff line change 11<%- | String $service | -%>
22[Unit]
33Description=Timer to tidy Puppet metrics
4- Requires=<%= $service %>-tidy.service
54
65[Timer]
76OnCalendar=*-*-* 00:00:00
Original file line number Diff line number Diff line change 11<%- | String $service, String $minute | -%>
22[Unit]
33Description=Timer to collect Puppet metrics
4- Requires=<%= $service %>-metrics.service
54
65[Timer]
76OnCalendar=*-*-* *:<%= $minute %>
You can’t perform that action at this time.
0 commit comments