X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d1406cdadc022639bc0c3121c801f8997c331363..45c0862be818c87ac9825ed36a7a2e9d3a1aab7c:/test/integration/spamassassin/serverspec/spamassassin_spec.rb?ds=inline diff --git a/test/integration/spamassassin/serverspec/spamassassin_spec.rb b/test/integration/spamassassin/serverspec/spamassassin_spec.rb index 2f2e643cf..d96394f9e 100644 --- a/test/integration/spamassassin/serverspec/spamassassin_spec.rb +++ b/test/integration/spamassassin/serverspec/spamassassin_spec.rb @@ -3,15 +3,21 @@ require "serverspec" # Required by serverspec set :backend, :exec +service_name = if os[:family] == "debian" + "spamd" + else + "spamassassin" + end + describe package("spamassassin") do it { should be_installed } end -describe service("spamassassin") do +describe service(service_name) do it { should be_enabled } it { should be_running } end describe port(783) do - it { should be_listening } + it { should be_listening.with("tcp") } end