]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/openssh/inspec/openssh_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / openssh / inspec / openssh_spec.rb
similarity index 70%
rename from test/integration/openssh/serverspec/openssh_spec.rb
rename to test/integration/openssh/inspec/openssh_spec.rb
index 49cfac3526ef4e7e97bb63bd9ac88e0c9b3b2442..6560895ebeb26217d827b96d2e0bb706ddc47e0a 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("openssh-client") do
   it { should be_installed }
 end
@@ -17,5 +12,6 @@ describe service("ssh") do
 end
 
 describe port(22) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[tcp tcp6] }
 end