]> git.openstreetmap.org Git - chef.git/blobdiff - test/integration/mysql/inspec/mysql_spec.rb
Switch to using inspec for testing
[chef.git] / test / integration / mysql / inspec / mysql_spec.rb
similarity index 66%
rename from test/integration/mysql/serverspec/mysql_spec.rb
rename to test/integration/mysql/inspec/mysql_spec.rb
index 88323fe983635123032fb3d13f2de03d2ee285c5..549f33da9aecd1fece1044eb1d9e96d1aa1d3677 100644 (file)
@@ -1,9 +1,4 @@
-require "serverspec"
-
-# Required by serverspec
-set :backend, :exec
-
-mysql_variant = if os[:family] == "ubuntu"
+mysql_variant = if os.name == "ubuntu"
                   "mysql"
                 else
                   "mariadb"
@@ -19,5 +14,6 @@ describe service("#{mysql_variant}") do
 end
 
 describe port(3306) do
-  it { should be_listening.with("tcp") }
+  it { should be_listening }
+  its("protocols") { should cmp "tcp" }
 end