Skip to content
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

[kubeops] Add tests for CreateRelease #1409

Merged
merged 1 commit into from
Jan 8, 2020

Conversation

latiif
Copy link
Contributor

@latiif latiif commented Jan 3, 2020

Description of the change

Adds tests for the functionality of creating releases with Helm 3.
Tests the functionality in both the HTTP handler and /pkg/agent (Helm 3 library wrapper).
Analogous to the tests done for tiller-proxy in /cmd/tiller-proxy/internal/handler and /pkg/proxy

Benefits

Covers and tests CreateRelease #1399

Applicable issues

Should be merged after #1408

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. See my comments on the previous diff RE using go-cmp and subtests instead of logging.

One thing that I'm unclear about: do we have a use-case for creating releases without auth? This smells of something which was in tiller-proxy from before authz was explicitly required, so I'm not sure we want to be copying this across... but if it's already in the actual code being tested, OK.

@absoludity
Copy link
Contributor

Looks like this needs to be rebased on master (removing the commits which are now already in master)? Either way, happy to land once the conflict is resolved :

- Extend tests for /pkg/agent to include create release
- Add create release tests scenarios in /kubeopps/internal/handler
@latiif latiif force-pushed the test-helm3-create-release branch from 8d6d7ce to 784e14e Compare January 8, 2020 07:42
@latiif
Copy link
Contributor Author

latiif commented Jan 8, 2020

Now it's based on the latest upstream master branch.

@andresmgot andresmgot merged commit 1c114ae into vmware-tanzu:master Jan 8, 2020
@latiif latiif deleted the test-helm3-create-release branch January 8, 2020 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants