]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/spamassassin/serverspec/spamassassin_spec.rb
Add basic tests for clamav, exim and spamassassin cookbooks
[chef.git] / test / integration / spamassassin / serverspec / spamassassin_spec.rb
diff --git a/test/integration/spamassassin/serverspec/spamassassin_spec.rb b/test/integration/spamassassin/serverspec/spamassassin_spec.rb
new file mode 100644 (file)
index 0000000..2f2e643
--- /dev/null
@@ -0,0 +1,17 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("spamassassin") do
+  it { should be_installed }
+end
+
+describe service("spamassassin") do
+  it { should be_enabled }
+  it { should be_running }
+end
+
+describe port(783) do
+  it { should be_listening }
+end