Skip to content

Commit

Permalink
Expose the occurences check parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Bashton committed May 10, 2013
1 parent cae4262 commit d21dc5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions manifests/check.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
$high_flap_threshold = undef,
$refresh = undef,
$aggregate = undef,
$occurrences = undef,
$config = undef,
$purge_config = 'false',
) {
Expand All @@ -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'],
}
Expand Down
4 changes: 3 additions & 1 deletion spec/defines/sensu_check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
:high_flap_threshold => 15,
:refresh => 1800,
:aggregate => true,
:occurrences => 5,
} }

it { should contain_sensu_check('mycheck').with(
Expand All @@ -43,7 +44,8 @@
'low_flap_threshold' => '10',
'high_flap_threshold' => '15',
'refresh' => '1800',
'aggregate' => true
'aggregate' => true,
'occurrences' => '5'
) }
end

Expand Down

0 comments on commit d21dc5e

Please sign in to comment.