infrataster-plugin-mysql

MySQL plugin for Infrataster
Installation
Add this line to your Gemfile:
gem 'infrataster-plugin-mysql'
And then add the following line to your spec_helper.rb:
require 'infrataster-plugin-mysql'
Usage
describe server(:db) do
describe mysql_query('SHOW STATUS') do
it 'returns positive uptime' do
row = results.find {|r| r['Variable_name'] == 'Uptime' }
expect(row['Value'].to_i).to be > 0
end
end
end
You can specify username, password and database by options passed to Infrataster::Server.define
:
Infrataster::Server.define(
mysql: {user: 'app', password: 'app', database: 'myapp'}
)
Contributing