12 lines
363 B
Ruby
12 lines
363 B
Ruby
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' }
|
|
its('content') { should include '--web.listen-address=0.0.0.0:9090' }
|
|
end
|
|
end
|