diff --git a/spec/classes/uchiwa_spec.rb b/spec/classes/uchiwa_spec.rb index 787b7c8..d9e4ff7 100644 --- a/spec/classes/uchiwa_spec.rb +++ b/spec/classes/uchiwa_spec.rb @@ -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