]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/tilecache/serverspec/squid_spec.rb
Add test for tilecache cookbook
[chef.git] / test / integration / tilecache / serverspec / squid_spec.rb
diff --git a/test/integration/tilecache/serverspec/squid_spec.rb b/test/integration/tilecache/serverspec/squid_spec.rb
new file mode 100644 (file)
index 0000000..a72a8b3
--- /dev/null
@@ -0,0 +1,21 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("squid") do
+  it { should be_installed }
+end
+
+describe service("squid") do
+  it { should be_enabled }
+  it { should be_running }
+end
+
+describe port(3128) do
+  it { should be_listening.with("tcp") }
+end
+
+describe port(8080) do
+  it { should be_listening.with("tcp") }
+end