Bug 1253538

Summary: display wrong webhook url on web console
Product: OKD Reporter: Wang Haoran <haowang>
Component: Management ConsoleAssignee: Jessica Forrester <jforrest>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Sun <wsun>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: libra-bugs, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-08 20:14:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wang Haoran 2015-08-14 04:08:12 UTC
Description of problem:

the build web hook url Suffix GitHub and Generic is upper case

Version-Release number of selected component (if applicable):
oc v1.0.4-229-g238ae3d
openshift v1.0.4-229-g238ae3d
kubernetes v1.1.0-alpha.0-1155-gb73c53c


How reproducible:
always

Steps to Reproduce:
1.set up the openshift origin env on ec2 instance 
2.login in use user admin
  $oc login localhost -u admin -p fad
3.create new project 
  $oc new-project test
4.create the ruby hello world example
  $oc process -f application-template-stibuild.json|oc create -f -
5. login the web console with user admin and select the project test , click browse-> builds-> Show URL  
 
Actual results:
https://<serverip>:8443/oapi/v1/namespaces/test/buildconfigs/ruby-sample-build/webhooks/secret101/GitHub
https://<serverip>:8443/oapi/v1/namespaces/test/buildconfigs/ruby-sample-build/webhooks/secret101/Generic

Expected results:
on the web console ,the  web hook url should be avaiable
https://<serverip>:8443/oapi/v1/namespaces/test/buildconfigs/ruby-sample-build/webhooks/secret101/github
https://<serverip>:8443/oapi/v1/namespaces/test/buildconfigs/ruby-sample-build/webhooks/secret101/generic
Additional info:

Comment 1 Jessica Forrester 2015-08-17 18:41:44 UTC
fixed in https://github.com/openshift/origin/pull/4214

Comment 2 openshift-github-bot 2015-08-18 14:18:31 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/ccd77c2301141bdfe26f50123eaded67f4e3be12
Bug 1253538 - webhook URLs should have a lower case type

Comment 3 Wang Haoran 2015-08-20 02:01:59 UTC
the bug was verified in AMI devenv-fedora_2176