]> git.openstreetmap.org Git - chef.git/commitdiff
Check that memcached is running on the frontends
authorTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 19:38:40 +0000 (20:38 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 9 Sep 2020 19:38:40 +0000 (20:38 +0100)
test/integration/web-frontend/serverspec/memcached_spec.rb [new file with mode: 0644]

diff --git a/test/integration/web-frontend/serverspec/memcached_spec.rb b/test/integration/web-frontend/serverspec/memcached_spec.rb
new file mode 100644 (file)
index 0000000..26eccec
--- /dev/null
@@ -0,0 +1,17 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("memcached") do
+  it { should be_installed }
+end
+
+describe service("memcached") do
+  it { should be_enabled }
+  it { should be_running }
+end
+
+describe port(11211) do
+  it { should be_listening.with("tcp") }
+end