]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/spamassassin/inspec/spamassassin_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / spamassassin / inspec / spamassassin_spec.rb
diff --git a/test/integration/spamassassin/inspec/spamassassin_spec.rb b/test/integration/spamassassin/inspec/spamassassin_spec.rb
new file mode 100644 (file)
index 0000000..18506ea
--- /dev/null
@@ -0,0 +1,19 @@
+service_name = if os.name == "debian"
+                 "spamd"
+               else
+                 "spamassassin"
+               end
+
+describe package("spamassassin") do
+  it { should be_installed }
+end
+
+describe service(service_name) do
+  it { should be_enabled }
+  it { should be_running }
+end
+
+describe port(783) do
+  it { should be_listening }
+  its("protocols") { should cmp %w[tcp tcp6] }
+end