]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/mail/serverspec/spamassassin_spec.rb
Add pool label to phpfpm exporters to avoid duplicate metrics
[chef.git] / test / integration / mail / serverspec / spamassassin_spec.rb
index 1276f140cf5db32ad15e1e94f01e91a9e92701c0..d96394f9e0df31ec930d0593efb5dee77f47e114 100644 (file)
@@ -3,11 +3,17 @@ 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