Instantly share code, notes, and snippets.

@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