Created
July 15, 2011 12:11
-
-
Save ameuret/1084580 to your computer and use it in GitHub Desktop.
Reusing Gherkin steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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