features/managing_remote_servers.feature in hudson-0.2.7 vs features/managing_remote_servers.feature in hudson-0.3.0.beta.1

- old
+ new

@@ -11,21 +11,26 @@ Scenario: No remote servers When I run local executable "hudson" with arguments "list" Then I should see "Either use --host or add remote servers." Scenario: Add a remote server - When I run local executable "hudson" with arguments "remotes add --host localhost --port 3010" - And I run local executable "hudson" with arguments "remotes add --host localhost --port 3011" + When I run local executable "hudson" with arguments "add_remote test --host localhost --port 3010" And I run local executable "hudson" with arguments "list" Then I should not see "Either use --host or add remote servers." - And I should see "localhost:3010 -" - And I should see "No jobs" - And I should see "localhost:3011 - no connection" + And I should see "test [localhost:3010] - no jobs" + Scenario: Add a few remote servers + When I run local executable "hudson" with arguments "add_remote test --host localhost --port 3010" + And I run local executable "hudson" with arguments "add_remote another --host localhost --port 4000" + And I run local executable "hudson" with arguments "list" + Then I should not see "Either use --host or add remote servers." + And I should see "test [localhost:3010] - no jobs" + And I should see "another [localhost:3011] - no connection" + Scenario: Add a remote server and access by abbreviation - When I run local executable "hudson" with arguments "remotes add --host localhost --port 3010" - When I run local executable "hudson" with arguments "remotes add --host another.server" + When I run local executable "hudson" with arguments "add_remote test --host localhost --port 3010" + And I run local executable "hudson" with arguments "add_remote another --host another.host" And I run local executable "hudson" with arguments "list --server local" - And I should see "localhost:3010 -" - And I should see "No jobs" - And I should not see "another.server" + Then I should not see "Either use --host or add remote servers." + And I should see "test [localhost:3010] - no jobs" + And I should not see "another"