prometheus-formula/test/integration/default/controls/environ_spec.rb

12 lines
363 B
Ruby
Raw Normal View History

control 'prometheus configuration environment' do
title 'should match desired lines'
describe file('/etc/default/prometheus.sh') do
it { should be_file }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
2019-06-23 18:18:40 +02:00
its('content') { should include '--web.listen-address=0.0.0.0:9090' }
end
end