Skip to content

Instantly share code, notes, and snippets.

@tily
Last active December 19, 2015 17:19
Show Gist options
  • Save tily/5990140 to your computer and use it in GitHub Desktop.
Save tily/5990140 to your computer and use it in GitHub Desktop.
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