Instantly share code, notes, and snippets.

Embed
What would you like to do?
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