Bug 1012644 - error message from rhc app create --from-code with invalid url should match that of Origin/Online
Summary: error message from rhc app create --from-code with invalid url should match t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 1.2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Miciah Dashiel Butler Masters
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1066283
TreeView+ depends on / blocked
 
Reported: 2013-09-26 18:57 UTC by Peter Ruan
Modified: 2017-03-08 17:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1066283 (view as bug list)
Environment:
Last Closed: 2013-12-16 09:11:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Ruan 2013-09-26 18:57:35 UTC
Description of problem:
  When running with Enterprise (rch.1.10.1) with rhc app create --from-code with an invalid URL, the error message should match that given by Origin/Online to be consistent

Online/Origin
=============
Creating application 'wontwork' ... Source code repository could not be cloned: 

Enterprise
=============
Creating application 'wontwork' ... Source Code repository could not be cloned: 

Note the word 'Code' is lower case in Online/Origin.  Please change it so we have a consistent error message across the product lines.

Also,
  URL like 'git:openshift/test-example.git' is considered valid in Origin/Online, but is treated as 'Invalid initial git URL'

Online/Origin
=============
Source code repository could not be cloned: 'git:openshift/test-example.git'.

Enterprise
==========
Creating application 'wontwork' ... Invalid initial git URL



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

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 3 Gaoyun Pei 2013-11-18 07:13:15 UTC
Test this on 2.0/2013-11-15.1.

[root@dhcp-8-133 workspace]# rhc app create app1 php --from-code git:openshift/test-example.git
Using php-5.3 (PHP 5.3) for 'php'

Application Options
-------------------
  Domain:      www
  Cartridges:  php-5.3
  Source Code: git:openshift/test-example.git
  Gear Size:   default
  Scaling:     no

Creating application 'app1' ... 
Source code repository could not be cloned:
'git:openshift/test-example.git'. Please verify the repository is
correct and try a non-SSH URL such as HTTP.

The word "code" in "Source code repository could not be cloned:" has been changed to lower-case. And the response of git url is correct.


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