prometheus-formula/test/integration/default/controls/config_spec.rb
2019-04-25 22:14:39 +02:00

15 lines
514 B
Ruby

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' }
its('content') { should include 'Your changes will be overwritten.' }
its('content') { should include 'global:' }
its('content') { should include 'alerting:' }
end
end