]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/prometheus/inspec/prometheus_node_exporter_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / prometheus / inspec / prometheus_node_exporter_spec.rb
similarity index 55%
rename from test/integration/prometheus/serverspec/prometheus_node_exporter_spec.rb
rename to test/integration/prometheus/inspec/prometheus_node_exporter_spec.rb
index 7a035e8f67e575699dcae0bd8e84cfef28dca838..42d26a02f4df15e4446d8d470f674370e9a1f3c3 100644 (file)
@@ -1,13 +1,9 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe service("prometheus-node-exporter") do
   it { should be_enabled }
   it { should be_running }
 end
 
 describe port(9100) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end