New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hostname to test scripts #985
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job Alay!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These look like reasonable changes to me. The only concern I have is that these scripts won't work for a developer deployed broker (make deploy). Not sure how to make this more resilient.
test/bind.sh
Outdated
| "https://asb-1338-ansible-service-broker.172.17.0.1.nip.io/ansible-service-broker/v2/service_instances/$INSTANCE_ID/service_bindings/$BINDING_ID?accepts_incomplete=true" | ||
|
|
||
|
|
||
| "https://asb-openshift-automation-service-broker.$HOSTNAME.nip.io/openshift-automation-service-broker/v2/service_instances/$INSTANCE_ID/service_bindings/$BINDING_ID?accepts_incomplete=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will only work for oc cluster up --enable=automation-service-broker, it won't work in the development use case (ie. after make deploy).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure building out these developer focused scripts dynamically for all our deployment scenarios is in scope. Although to your point, make deploy is probably a developer function, so maybe it deserves attention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they will not work for a developer then -1 to this change. These scripts are PURELY for hooking up to a developers deployment of the broker.
|
I will test these out to see if they suit the developer workflow or now. |
|
These scripts are primarily used by a developer so the default case should work against a Developer setup
I should then be able to run routes after make deployThe endpoint is Catasb "production" setupWhen a broker is launched using pure catasb, the url is completely different. I would be okay if we want the scripts to also work with that setup. In that case I would expect pass in a flag to the script to indicate it is a production or catasb setup, i.e. it is not a development setup. For example, routes after catasbThe endpoint is The working with catasb "production" setup is OPTIONAL in my opinion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See lengthy comment
#985 (comment)
|
Random testing looked good. Visual inspection looks good too. Last operation passedGet instance passedcatalog passedbootstrap passed |
|
@djzager I've verified that Alay made the changes you pointed out, they now work with |
Describe what this PR does and why we need it:
Add hostname variable to test scripts and change the url
Changes proposed in this pull request