Skip to content

Instantly share code, notes, and snippets.

@TylerBrock
Last active August 29, 2015 14:06
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 TylerBrock/5f6b9e205b4d2fbbe060 to your computer and use it in GitHub Desktop.
Save TylerBrock/5f6b9e205b4d2fbbe060 to your computer and use it in GitHub Desktop.
Sample cucumber
Feature: Driver failure recovery
In order to ensure the driver remains usable in the face of failures
As a driver author
I want the driver to recover in the event of failures
Scenario: Server is stopped and started
Given a cluster in the standalone server configuration
When I insert a document
Then the insert succeeds
When I stop the server
And I insert a document
Then the insert fails
When I start the server
And insert a document
Then the insert succeeds
Scenario: Server is restarted
Given a cluster in the standalone server configuration
When I insert a document
Then the insert succeeds
When I restart the server
And insert a document with retries
Then the insert succeeds (eventually)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment