]> git.openstreetmap.org Git - chef.git/blob - test/integration/networking/serverspec/shorewall_spec.rb
Add OOB addresses for remaining G9s in Dublin
[chef.git] / test / integration / networking / serverspec / shorewall_spec.rb
1 require "serverspec"
2
3 # Required by serverspec
4 set :backend, :exec
5
6 describe package("shorewall") do
7   it { should be_installed }
8 end
9
10 describe service("shorewall") do
11   it { should be_enabled }
12   it { should be_running }
13 end
14
15 describe file("/etc/shorewall/rules") do
16   it { should be_file }
17   its(:content) { should match(/ACCEPT.*echo-request/) }
18   its(:content) { should match(/ACCEPT.*http/) }
19   its(:content) { should match(/ACCEPT.*https/) }
20 end