Skip to content

Instantly share code, notes, and snippets.

@czarneckid
Created June 6, 2011 23:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czarneckid/1011369 to your computer and use it in GitHub Desktop.
Save czarneckid/1011369 to your computer and use it in GitHub Desktop.
Feature: MySQL
In order to support Ruby on Rails development
And avoid lost data resulting from system failure or incompetence
As a responsible system administrator
I want to ensure that our MySQL databases are running as expected
And that we have good slaves of the masters
And that our snapshotted backups are up to date
@critical
Scenario Outline: Ensure a MySQL master or read slaves is running
When I SSH to <host> and run "pgrep -u mysql mysqld"
Then it should exit successfully
Examples:
| host |
| some-machine-1 |
| some-machine-2 |
| some-machine-3 |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment