]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/otrs/inspec/apache_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / otrs / inspec / apache_spec.rb
similarity index 57%
rename from test/integration/otrs/serverspec/apache_spec.rb
rename to test/integration/otrs/inspec/apache_spec.rb
index dcd625ae5498226c6ee96a6afa02f384bf603d54..8006330b441e96365a635a878578c9623dfe1469 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("apache2") do
   it { should be_installed }
 end
@@ -13,9 +8,11 @@ describe service("apache2") do
 end
 
 describe port(80) do
-  it { should be_listening.with("tcp6") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end
 
 describe port(443) do
-  it { should be_listening.with("tcp6") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end