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

Update check in e2e test to use resources api. #4065

Merged
merged 3 commits into from
Jan 13, 2022

Conversation

absoludity
Copy link
Contributor

Signed-off-by: Michael Nelson minelson@vmware.com

Description of the change

This is a prequel PR to fix the issue blocking CI in #4054.

Specifically, it updates the 02-create-private-registry test so that it no longer tries to hit the k8s API to verify that the created secret was used with the deployment.

Instead, it uses the resources API to fetch the same deployment data.

There was a bit of a yack-shave, in that it turned out that I was incorrectly using an Any proto field for the GetInstalledPackageResourceRefsResponse, which meant that the http/gateway endpoint didn't work for this URL (complaining that the Any field didn't have a TypeURL). An Any field should only ever be used for any message, not any data. So instead, the manifest field is now more correctly a string field. This required a small update to the dashboard also.

Benefits

#4054 can land, which will complete #3896

Possible drawbacks

Applicable issues

Additional information

Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
@castelblanque
Copy link
Collaborator

Nice to see that there was only a single point in CI tests (apart from operators maybe?) where K8s API was hit!

@castelblanque
Copy link
Collaborator

Looking forward to getting rid of generated files. I believe it would remove noise in the dev process 😄

Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity merged commit 5d1ae07 into master Jan 13, 2022
@absoludity absoludity deleted the fix-02-create-private-registry branch January 13, 2022 03:04
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.

None yet

2 participants