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

Commit

Permalink
Puppet-rspec test for auth param
Browse files Browse the repository at this point in the history
This commit contains a puppet-rspec test for the newly introduced auth
parameter.
  • Loading branch information
Simon Aquino committed Dec 8, 2015
1 parent 1f12108 commit c541d0b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/classes/uchiwa_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,12 @@
}
end

context 'with static JWT RSA keys' do
let(:params) {{ :auth => { 'publickey' => '/etc/sensu/uchiwa.rsa.pub', 'privatekey' => '/etc/sensu/uchiwa.rsa' } }}
it {
should contain_file('/etc/sensu/uchiwa.json') \
.with_content(/"auth": {\n "publickey": "\/etc\/sensu\/uchiwa.rsa.pub",\n "privatekey": "\/etc\/sensu\/uchiwa.rsa"\n }/)
}
end

end

0 comments on commit c541d0b

Please sign in to comment.