mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
18 lines
561 B
Gherkin
18 lines
561 B
Gherkin
|
Feature: SSH Connection
|
||
|
|
||
|
Background:
|
||
|
Given a test app with the default configuration
|
||
|
And servers with the roles app and web
|
||
|
And a task which executes as root
|
||
|
|
||
|
Scenario: Switching from default user to root and back again
|
||
|
When I run cap "git:check"
|
||
|
Then the task is successful
|
||
|
And references in the remote repo are listed
|
||
|
When I run cap "am_i_root"
|
||
|
Then the task is successful
|
||
|
And contains "root" in the output
|
||
|
Then I run cap "git:check"
|
||
|
Then the task is successful
|
||
|
And references in the remote repo are listed
|