Skip to content

Instantly share code, notes, and snippets.

@ameuret
Created July 15, 2011 12:11
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 ameuret/1084580 to your computer and use it in GitHub Desktop.
Save ameuret/1084580 to your computer and use it in GitHub Desktop.
Reusing Gherkin steps
Scenario: Locate a running agent
Given an ssh agent has been launched without parameters
When I run `ssh-locate`
Then the output should contain "SSH_AUTH_SOCK="
And the output should contain "export SSH_AUTH_SOCK;"
And the output should contain "SSH_AGENT_PID="
And the output should contain "export SSH_AGENT_PID;"
And the output should contain the correct agent PID
And the output should contain the correct agent socket
Scenario: Locate an agent that shows its socket
Given an ssh agent has been launched with a specific socket
When I run `ssh-locate`
Then the output should contain "SSH_AUTH_SOCK="
And the output should contain "export SSH_AUTH_SOCK;"
And the output should contain "SSH_AGENT_PID="
And the output should contain "export SSH_AGENT_PID;"
And the output should contain the correct agent PID
And the output should contain the correct agent socket
Scenario: Locate a running agent
Given an ssh agent has been launched without parameters
When I run `ssh-locate`
Then the output should contain "SSH_AUTH_SOCK="
And the output should contain "export SSH_AUTH_SOCK;"
And the output should contain "SSH_AGENT_PID="
And the output should contain "export SSH_AGENT_PID;"
And the output should contain the correct agent PID
And the output should contain the correct agent socket
Scenario: Locate an agent that shows its socket
Given an ssh agent has been launched with a specific socket
When I run `ssh-locate`
Then it should behave as in 'Locate a running agent'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment