File tree 2 files changed +3
-8
lines changed 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 66
66
contain puppet_metrics_collector::system::cpu
67
67
contain puppet_metrics_collector::system::memory
68
68
contain puppet_metrics_collector::system::processes
69
- } else {
70
- notify { 'sysstat_missing_warning' :
71
- message => ' System collection disabled. Set `puppet_metrics_collector::system::manage_sysstat: true` to enable system metrics' ,
72
- loglevel => warning ,
73
- }
69
+ }
70
+ else {
71
+ warning (' System collection disabled. Set `puppet_metrics_collector::system::manage_sysstat: true` to enable system metrics' )
74
72
}
75
73
76
74
if $facts [' virtual' ] == ' vmware' {
Original file line number Diff line number Diff line change 11
11
let ( :pre_condition ) { 'package{"sysstat": }' }
12
12
let ( :facts ) { { puppet_metrics_collector : { have_sysstat : true , have_systemd : true } } }
13
13
14
- it { is_expected . not_to contain_notify ( 'sysstat_missing_warning' ) }
15
14
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::cpu' ) }
16
15
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::memory' ) }
17
16
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::processes' ) }
21
20
let ( :params ) { { manage_sysstat : true } }
22
21
let ( :facts ) { { puppet_metrics_collector : { have_sysstat : false , have_systemd : true } } }
23
22
24
- it { is_expected . not_to contain_notify ( 'sysstat_missing_warning' ) }
25
23
it { is_expected . to contain_package ( 'sysstat' ) }
26
24
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::cpu' ) }
27
25
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::memory' ) }
28
26
it { is_expected . to contain_class ( 'puppet_metrics_collector::system::processes' ) }
29
27
end
30
28
31
29
context 'not installed and not managed' do
32
- it { is_expected . to contain_notify ( 'sysstat_missing_warning' ) }
33
30
it { is_expected . not_to contain_package ( 'sysstat' ) }
34
31
it { is_expected . not_to contain_class ( 'puppet_metrics_collector::system::cpu' ) }
35
32
it { is_expected . not_to contain_class ( 'puppet_metrics_collector::system::memory' ) }
You can’t perform that action at this time.
0 commit comments