Skip to content

Commit

Permalink
Merge branch 'master' into deprication_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jlambert121 committed May 16, 2013
2 parents 13b90cc + 70ca089 commit 69985fa
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 69985fa

Please sign in to comment.