]> git.openstreetmap.org Git - chef.git/blob - test/integration/spamassassin/serverspec/spamassassin_spec.rb
d96394f9e0df31ec930d0593efb5dee77f47e114
[chef.git] / test / integration / spamassassin / serverspec / spamassassin_spec.rb
1 require "serverspec"
2
3 # Required by serverspec
4 set :backend, :exec
5
6 service_name = if os[:family] == "debian"
7                  "spamd"
8                else
9                  "spamassassin"
10                end
11
12 describe package("spamassassin") do
13   it { should be_installed }
14 end
15
16 describe service(service_name) do
17   it { should be_enabled }
18   it { should be_running }
19 end
20
21 describe port(783) do
22   it { should be_listening.with("tcp") }
23 end