Updated mysql.rb

This commit is contained in:
Chan9390 2017-07-19 17:42:49 +05:30
parent 97e5e7ede6
commit 6acb359c09
No known key found for this signature in database
GPG Key ID: 6CC28422F21ED4FA

View File

@ -2,11 +2,13 @@ control "mysql" do
title "MySQL"
desc "Check if MySQL is running properly. Installation script available at /scripts/installs/setup_mysql.bat"
describe command('sc query wampmysqld') do
its('stdout') { should match "STATE : 4 RUNNING" }
describe service('wampmysqld') do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
describe command('netstat -aob | findstr :3306') do
its('stdout') { should match "LISTENING" }
describe port('3306') do
it { should be_listening }
end
end