]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/prometheus-server/inspec/karma_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / prometheus-server / inspec / karma_spec.rb
similarity index 53%
rename from test/integration/prometheus-server/serverspec/karma_spec.rb
rename to test/integration/prometheus-server/inspec/karma_spec.rb
index 9e5840d8bb68d9570b5dcfec3e9e55c3e81dda82..c907b4679263bfe17efc86f42b6260ba70775a9f 100644 (file)
@@ -1,13 +1,9 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe service("prometheus-karma") do
   it { should be_enabled }
   it { should be_running }
 end
 
 describe port(8081) do
-  it { should be_listening.with("tcp6") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end