]> git.openstreetmap.org Git - chef.git/blob - test/integration/tilecache/serverspec/nginx_spec.rb
Restart rails by name during log rotation
[chef.git] / test / integration / tilecache / serverspec / nginx_spec.rb
1 require "serverspec"
2
3 # Required by serverspec
4 set :backend, :exec
5
6 describe package("nginx") do
7   it { should be_installed }
8 end
9
10 describe service("nginx") do
11   it { should be_enabled }
12   it { should be_running }
13 end
14
15 describe port(80) do
16   it { should be_listening.with("tcp") }
17 end
18
19 describe port(443) do
20   it { should be_listening.with("tcp") }
21 end
22
23 describe port(8050) do
24   it { should be_listening.with("tcp") }
25 end