Skip to content

Instantly share code, notes, and snippets.

@tily tily/mysqld_spec.rb
Last active Dec 19, 2015

Embed
What would you like to do?
JTF ニフティクラウドオートメーション ハンズオン資料の回答例
require 'spec_helper'
describe package('mysql-server') do
it { should be_installed }
end
describe service('mysqld') do
it { should be_enabled }
it { should be_running }
end
describe port(3306) do
it { should be_listening }
end
describe file('/etc/my.cnf') do
it { should be_file }
end
require 'spec_helper'
describe command('curl http://localhost/wp-admin/install.php') do
it { should return_stdout /Welcome to the famous five minute WordPress installation process!/ }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.