Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

add a test for sensu_api_endpoints param #54

Merged
merged 1 commit into from
Sep 30, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion spec/classes/uchiwa_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,13 @@

end

end
context 'with sensu_api_endpoints' do
let(:params) {{ :sensu_api_endpoints => [ { 'name' => 'foo', 'host' => 'bar' } ] }}
it {
should contain_file('/etc/sensu/uchiwa.json') \
.with_content(/"name": "foo"/) \
.with_content(/"host": "bar"/)
}
end

end