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

15 lines
525 B
Ruby
Raw Normal View History

control 'Prometheus configuration' do
title 'should match desired lines'
describe file('/etc/prometheus/prometheus.yml') do
it { should be_file }
2019-06-23 18:18:40 +02:00
it { should be_owned_by 'prometheus' }
it { should be_grouped_into 'prometheus' }
its('mode') { should cmp '0644' }
its('content') { should include 'File managed by Salt' }
its('content') { should include 'Your changes may be overwritten.' }
its('content') { should include 'global:' }
its('content') { should include 'alerting:' }
end
end