2017-04-06 11:37:50 +02:00
|
|
|
require 'net/http'
|
|
|
|
require 'uri'
|
|
|
|
|
|
|
|
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
|
2017-04-06 11:46:01 +02:00
|
|
|
describe service('bind9') do
|
|
|
|
it { should be_enabled }
|
|
|
|
end
|
|
|
|
|
2017-04-06 11:37:50 +02:00
|
|
|
describe port(53) do
|
|
|
|
it { should be_listening }
|
|
|
|
end
|
2017-04-06 11:53:03 +02:00
|
|
|
|
|
|
|
describe command("ps auwx | grep bind") do
|
|
|
|
its(:stdout) { should include " -t /var/chroot-bind" }
|
|
|
|
end
|