inspec/test/integration/default/apache_conf_spec.rb

17 lines
372 B
Ruby
Raw Normal View History

# encoding: utf-8
2016-05-10 17:23:11 +00:00
# TODO: do not run those tests on docker yet
return if ENV['DOCKER']
return unless os.linux?
2016-05-10 17:23:11 +00:00
# direct access to params of apache conf
describe apache_conf do
its('LogLevel') { should cmp 'warn' }
its('MaxKeepAliveRequests') { should cmp 100 }
end
2016-05-10 17:23:11 +00:00
# only read one param
describe apache_conf.params('LogLevel') do
it { should include 'warn' }
end