- name: squid
run_list:
- recipe[squid::default]
+ - name: tilecache
+ run_list:
+ - recipe[tilecache::default]
+ attributes:
+ networking:
+ nameservers:
+ - 127.0.0.1
- name: tools
run_list:
- recipe[tools::default]
- name: "Test Kitchen (squid)"
script:
- bundle exec kitchen test squid-ubuntu-1804
+ - name: "Test Kitchen (tilecache)"
+ script:
+ - bundle exec kitchen test tilecache-ubuntu-1804
- name: "Test Kitchen (tools)"
script:
- bundle exec kitchen test tools-ubuntu-1804
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("nginx") do
+ it { should be_installed }
+end
+
+describe service("nginx") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(80) do
+ it { should be_listening.with("tcp") }
+end
+
+describe port(443) do
+ it { should be_listening.with("tcp") }
+end
+
+describe port(8050) do
+ it { should be_listening.with("tcp") }
+end
--- /dev/null
+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