aboutsummaryrefslogtreecommitdiffstats
path: root/spec/acceptance/honeycomb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/acceptance/honeycomb_spec.rb')
-rw-r--r--spec/acceptance/honeycomb_spec.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/spec/acceptance/honeycomb_spec.rb b/spec/acceptance/honeycomb_spec.rb
index 36f8a2e..27358b8 100644
--- a/spec/acceptance/honeycomb_spec.rb
+++ b/spec/acceptance/honeycomb_spec.rb
@@ -17,14 +17,20 @@ describe 'fdio::honeycomb' do
it { should be_installed }
end
- describe file('/opt/honeycomb/config/honeycomb.json') do
+ describe file('/opt/honeycomb/config/credentials.json') do
it { is_expected.to exist }
- its(:content) { should match /"restconf-port":\s+8181/ }
- its(:content) { should match /"restconf-websocket-port":\s+7779/ }
its(:content) { should match /"username":\s+"admin"/}
its(:content) { should match /"password":\s+"admin"/}
end
+ describe file('/opt/honeycomb/config/restconf.json') do
+ it { is_expected.to exist }
+ its(:content) { should match /"restconf-port":\s+8181/ }
+ its(:content) { should match /"restconf-websocket-port":\s+7779/ }
+ its(:content) { should match /"restconf-https-binding-address":\s+"127.0.0.1"/ }
+ its(:content) { should match /"restconf-binding-address":\s+"127.0.0.1"/ }
+ end
+
describe service('honeycomb') do
it { should be_running }
it { should be_enabled }