Bug 821919 - rhc tools require interactive input breaking cucumber tests
Summary: rhc tools require interactive input breaking cucumber tests
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-15 18:47 UTC by Rob Millner
Modified: 2015-05-15 01:53 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-08 17:58:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rob Millner 2012-05-15 18:47:11 UTC
Description of problem:
Some cucumber tests use the rhc tools to create domains and applications.  A recent change causes them to stop and ask for interactive directions even if the tool has been given everything on the command line it needs to perform its task.

This causes domain and application creation to either fail or hang.


Version-Release number of selected component (if applicable):


How reproducible:
Always.


Steps to Reproduce:
1. cd /root/li-test/tests
2. cucumber trap-user.feature  (this will hang if done interactively)
3. in another terminal; examine /tmp/rhc/cartridge-php/cucumber.log
  
Actual results:

Either it will hang or you will get the following in the log file.

Starting Interactive Setup.

It looks like you've not used OpenShift Express on this machine before.  We'll
help get you setup with just a couple of questions.  You can skip this in the
future by copying your config's around:

    /root/.openshift/express.conf
    /root/.ssh/

https://openshift.redhat.com/ username: stty: standard input: Inappropriate ioctl for device



Expected results:
The domain and application are created non-interactively.


Additional info:

The proposed solution is to add a "--noninteractive" flag to the tools to prevent the wizard from running.

Comment 1 John (J5) Palmieri 2012-05-15 22:30:29 UTC
I just pushed a quick fix that restricts the wizard to only the rhc tool for now and adds a --noprompt flag.  I wanted to reserve the verbiage "interactive" for something like the git interactive tools if we ever wanted to add that.

As I reorg the code I will be cleaning this up a little more.

Comment 2 John (J5) Palmieri 2012-05-18 16:36:07 UTC
Fixed with default configs in rhc as well as the cucumber tests generating their own configs.

Comment 3 jizhao 2012-05-21 06:43:51 UTC
Verified on devenv_1782.


Note You need to log in before you can comment on or make changes to this bug.