From 25a26001fe25c80fc14bffc6a4600246c996fa85 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 2 Dec 2022 22:45:47 +0000 Subject: [PATCH] Clone stateofthe map tests for new recipes --- .../serverspec/apache_spec.rb | 21 +++++++++++++++++++ .../serverspec/apache_spec.rb | 21 +++++++++++++++++++ .../serverspec/apache_spec.rb | 21 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 test/integration/stateofhemap-jekyll/serverspec/apache_spec.rb create mode 100644 test/integration/stateofhemap-static/serverspec/apache_spec.rb create mode 100644 test/integration/stateofhemap-wordpress/serverspec/apache_spec.rb 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 -- 2.45.1