Permalink
Browse files

Fixing the unit test failure

Since these tests do not use any livery, explicit wait_for_ssh command
is required
  • Loading branch information...
1 parent 2edd265 commit 882730729638f7f613b05f9291c32e691b162dac @kohsuke kohsuke committed Mar 29, 2013
Showing with 7 additions and 3 deletions.
  1. +4 −2 features/cli/scp.feature
  2. +2 −1 features/cli/ssh.feature
  3. +1 −0 features/step_definitions/cli_steps.rb
View
@@ -13,7 +13,8 @@ Feature: SCP a file into a named VM
end
"""
And I have a file named "hello.txt"
- When I run `blimpy scp Gherkins hello.txt`
+ When I run `blimpy wait_for_ssh`
+ And I run `blimpy scp Gherkins hello.txt`
Then the exit status should be 1
And the output should contain:
"""
@@ -34,5 +35,6 @@ Feature: SCP a file into a named VM
"""
And I have a file named "hello.txt"
And I run `blimpy start`
- When I run `blimpy scp "Cucumber Host" hello.txt`
+ When I run `blimpy wait_for_ssh`
+ And I run `blimpy scp "Cucumber Host" hello.txt`
Then the exit status should be 0
View
@@ -12,7 +12,8 @@ Feature: SSH into a named VM
end
end
"""
- When I run `blimpy ssh Gherkins`
+ When I run `blimpy wait_for_ssh`
+ And I run `blimpy ssh Gherkins`
Then the exit status should be 1
And the output should contain:
"""
@@ -34,6 +34,7 @@
When /^I ssh into the machine$/ do
step %{I run `blimpy start`}
+ step %{I run `blimpy wait_for_ssh`}
step %{I run `blimpy ssh "Cucumber Host" -o StrictHostKeyChecking=no` interactively}
end

0 comments on commit 8827307

Please sign in to comment.