]> git.openstreetmap.org Git - chef.git/commitdiff
Clone stateofthe map tests for new recipes
authorTom Hughes <tom@compton.nu>
Fri, 2 Dec 2022 22:45:47 +0000 (22:45 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 2 Dec 2022 22:46:13 +0000 (22:46 +0000)
test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb [new file with mode: 0644]
test/integration/stateofhemap-static/serverspec/apache_spec.rb [new file with mode: 0644]
test/integration/stateofhemap-wordpress/serverspec/apache_spec.rb [new file with mode: 0644]

diff --git a/test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb b/test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb
new file mode 100644 (file)
index 0000000..446d3b9
--- /dev/null
@@ -0,0 +1,21 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+  it { should be_installed }
+end
+
+describe service("apache2") 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
diff --git a/test/integration/stateofhemap-static/serverspec/apache_spec.rb b/test/integration/stateofhemap-static/serverspec/apache_spec.rb
new file mode 100644 (file)
index 0000000..446d3b9
--- /dev/null
@@ -0,0 +1,21 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+  it { should be_installed }
+end
+
+describe service("apache2") 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
diff --git a/test/integration/stateofhemap-wordpress/serverspec/apache_spec.rb b/test/integration/stateofhemap-wordpress/serverspec/apache_spec.rb
new file mode 100644 (file)
index 0000000..446d3b9
--- /dev/null
@@ -0,0 +1,21 @@
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+  it { should be_installed }
+end
+
+describe service("apache2") 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