-
Notifications
You must be signed in to change notification settings - Fork 170
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 tests for user-provided services #484
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.
Hey Andy!
Thanks for submitting this PR, @ctlong and I just reviewed it, and also ran it against a 16.25 cf-deployment, all of the tests pass but one relating to the CAPI bug you mention (using uups to change the credentials parameter) Carson and I manually reproduced this bug on newest cf-deployment, I assume we just need to wait for a capi-release with this PR cloudfoundry/cloud_controller_ng#2558?
Three other small things outside of the things we marked in review that we would ask you to change
- Adding
include_user_provided_services
to the example cats config - Adding a row to the
Explanation of Test Groups
section of the readme for user provide services - Adding unit tests to the CATS config unit test to validate the default is set correctly, nil error handling, and setting the value.
Fundamentally makes sense to us though, and the breaking test seems like it should pass when the relevant bug is fixed on CAPI, we should be able to re-test this on an appropriate CF-Deployment and merge after that.
Thanks
Jenna and Carson
This includes a test that updating a service updates bindings which will only work for cf CLI v6 or v7. The v8 CLI uses the v3 endpoint to update service instances which is currently broken (see cloudfoundry/cloud_controller_ng#2543) Signed-off-by: Andy Paine <andrew.paine@sap.com>
9674306
to
8194a39
Compare
Thanks @JenGoldstrich - that's really useful feedback. I think it is best to wait for a CAPI release to get these merged - in theory the cf-deployment pipelines are still using |
Can we merge this now that CAPI 1.22.0 is on the |
Thanks @andy-paine, looks great! |
What is this change about?
Add tests for user-provided service operations
Please provide contextual information.
As part of fixing cloudfoundry/cloud_controller_ng#2543 it is useful to have some CATs that exercise the user-provided service behaviour. In particular the test that service bindings get updated when the service gets updated will currently fail on
cf8
due to the CC v3 endpoint not having the correct behaviour.Given these are dedicated user-facing commands on the CLI (
cf cups
andcf uups
), I figured it made sense to have some CATs to cover their behaviourWhat version of cf-deployment have you run this cf-acceptance-test change against?
Latest (v16.25.0)
Please check all that apply for this PR:
Did you update the README as appropriate for this change?
How should this change be described in cf-acceptance-tests release notes?
Add tests for user-provided service operations
How many more (or fewer) seconds of runtime will this change introduce to CATs?
~60s with 4 nodes (slowest test is 60 seconds, fastest are <2 seconds)
What is the level of urgency for publishing this change?
Tag your pair, your PM, and/or team!
Working with team at SAP (can contact @philippthun, @FloThinksPi or @stephanme for followup)