From 1cad7a8e6f640478c896f4c44183ca829ef02626 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 18 Mar 2020 20:11:47 +0000 Subject: [PATCH] Add verifiers for wiki cookbook test --- .../wiki/serverspec/apache_spec.rb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/integration/wiki/serverspec/apache_spec.rb diff --git a/test/integration/wiki/serverspec/apache_spec.rb b/test/integration/wiki/serverspec/apache_spec.rb new file mode 100644 index 000000000..446d3b915 --- /dev/null +++ b/test/integration/wiki/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.39.5