Red Hat Bugzilla – Bug 843931
RHC snapshot requires interactive input breaking cucumber tests
Last modified: 2015-05-14 22:01:23 EDT
Description of problem:
Cucumber tests which use rhc snapshot/restore are, in some cases, resulting in an interactive SSH host authentication prompt which causes the tests to timeout. It seems to happen most frequently when the snapshotting occurs after aliasing or a domain alter.
Version-Release number of selected component (if applicable):
Run the performance.feature test, placing the snapshotting steps AFTER aliasing/namespace alter.
Steps to Reproduce:
Test failure due to interactive prompt.
A passing test.
We have worked around this issue by moving the snapshotting steps to the top of the feature steps, but that is really just masking the problem.
Fotios found the root of this issue while investigating a different bug. Reassigning.
This has been updated in this commit: https://github.com/openshift/rhc/commit/cf4f5c970a5eb8b20e89638f37a0b4fb21e17a5c
It is currently undergoing testing and will be merged with this pull request: https://github.com/openshift/li/pull/323
Some other scenarios(line 20, 51) in the same feature file are now failing. Looks like the same root cause where the ssh key is not being uploaded anymore by default
Tail end of the test results -
got: 1 (using ==)
@@ -1,2 +1,2 @@
./li/tests/step_definitions/../../stickshift/controller/test/cucumber/step_definitions/application_steps.rb:99:in `/^the application is stopped$/'
li/tests/performance.feature:59:in `When the application is stopped'
cucumber li/tests/performance.feature:20 # Scenario: Add and Remove Embedded Cartridegs
cucumber li/tests/performance.feature:51 # Scenario: Namespace Change, Application Alias, Sanpshot, Start, Stop, Restart and Destroy
27 scenarios (2 failed, 25 passed)
270 steps (2 failed, 13 skipped, 255 passed)
Look at updating the ~/.ssh/config file to exclude Password Auth and only allow public key auth, that will at least make sure the test fails immediately instead of timing out.
Moved to Jhon during bug triage meeting.