Fixing the unit test failure
Since these tests do not use any livery, explicit wait_for_ssh command is required
This commit is contained in:
parent
2edd265e92
commit
8827307296
|
@ -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
|
||||
|
|
|
@ -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 @@ end
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue