From d21dc5ee152b566091996e107c9d96117934361e Mon Sep 17 00:00:00 2001 From: Sam Bashton Date: Fri, 10 May 2013 14:42:38 +0100 Subject: [PATCH] Expose the occurences check parameter --- manifests/check.pp | 2 ++ spec/defines/sensu_check_spec.rb | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/check.pp b/manifests/check.pp index 1e130901b2..1a360a5cab 100644 --- a/manifests/check.pp +++ b/manifests/check.pp @@ -19,6 +19,7 @@ $high_flap_threshold = undef, $refresh = undef, $aggregate = undef, + $occurrences = undef, $config = undef, $purge_config = 'false', ) { @@ -41,6 +42,7 @@ high_flap_threshold => $high_flap_threshold, refresh => $refresh, aggregate => $aggregate, + occurrences => $occurrences, config => $config, require => File['/etc/sensu/conf.d/checks'], } diff --git a/spec/defines/sensu_check_spec.rb b/spec/defines/sensu_check_spec.rb index f2faef30cb..34eb2944e7 100644 --- a/spec/defines/sensu_check_spec.rb +++ b/spec/defines/sensu_check_spec.rb @@ -29,6 +29,7 @@ :high_flap_threshold => 15, :refresh => 1800, :aggregate => true, + :occurrences => 5, } } it { should contain_sensu_check('mycheck').with( @@ -43,7 +44,8 @@ 'low_flap_threshold' => '10', 'high_flap_threshold' => '15', 'refresh' => '1800', - 'aggregate' => true + 'aggregate' => true, + 'occurrences' => '5' ) } end