2019-04-24 18:18:10 +02:00
|
|
|
control 'Prometheus configuration' do
|
|
|
|
title 'should match desired lines'
|
|
|
|
|
|
|
|
describe file('/etc/prometheus/prometheus.yml') 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 'File managed by Salt' }
|
2019-06-16 02:33:24 +02:00
|
|
|
its('content') { should include 'Your changes may be overwritten.' }
|
2019-04-24 18:18:10 +02:00
|
|
|
its('content') { should include 'global:' }
|
|
|
|
its('content') { should include 'alerting:' }
|
|
|
|
end
|
|
|
|
end
|