]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/db-slave/inspec/postgresql_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / db-slave / inspec / postgresql_spec.rb
similarity index 64%
rename from test/integration/postgresql/serverspec/postgresql_spec.rb
rename to test/integration/db-slave/inspec/postgresql_spec.rb
index 84008f457ad3fb74f6688c4821ae6b2e496d1c76..4c5872e6312d1b3703596499fce373ed1539f249 100644 (file)
@@ -1,8 +1,3 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
 describe package("postgresql-15") do
   it { should be_installed }
 end
@@ -13,5 +8,6 @@ describe service("postgresql@15-main") do
 end
 
 describe port(5432) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp %w[tcp tcp6] }
 end