1 mysql_variant = if os.name == "ubuntu"
 
   7 describe package("#{mysql_variant}-server") do
 
   8   it { should be_installed }
 
  11 describe service("#{mysql_variant}") do
 
  12   it { should be_enabled }
 
  13   it { should be_running }
 
  16 describe port(3306) do
 
  17   it { should be_listening }
 
  18   its("protocols") { should cmp "tcp" }