]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/bind/inspec/bind_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / bind / inspec / bind_spec.rb
similarity index 53%
rename from test/integration/bind/serverspec/bind_spec.rb
rename to test/integration/bind/inspec/bind_spec.rb
index 8986df12c2d31be57e352fae740e893c6c8c1b12..399ec9b51401213726eff1687dc1ecdae8d5c9fc 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("bind9") do
   it { should be_installed }
 end
@@ -13,6 +8,6 @@ describe service("bind9") do
 end
 
 describe port(53) do
-  it { should be_listening.with("udp") }
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[udp udp6 tcp tcp6] }
 end