From: Tom Hughes Date: Fri, 2 Dec 2022 22:45:47 +0000 (+0000) Subject: Clone stateofthe map tests for new recipes X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/25a26001fe25c80fc14bffc6a4600246c996fa85?hp=b40c940172b533edb3023198d4c8d7f47ddc061b Clone stateofthe map tests for new recipes --- diff --git a/test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb b/test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb new file mode 100644 index 000000000..446d3b915 --- /dev/null +++ b/test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb @@ -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 index 000000000..446d3b915 --- /dev/null +++ b/test/integration/stateofhemap-static/serverspec/apache_spec.rb @@ -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 index 000000000..446d3b915 --- /dev/null +++ b/test/integration/stateofhemap-wordpress/serverspec/apache_spec.rb @@ -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