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

tests: fix error assertion and container layer sha256 #1725

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Apr 11, 2023

Rego error messages are now returned base64 encoded, so direct error message assertions don't work and we need to decode the policy decision string first. One of the tests was missing this.

Additionally alpine container has been updated and the layer digest has changed, so the policy used to check backward compat is now broken. Update it to have a valid digest.

@anmaxvl anmaxvl requested a review from a team as a code owner April 11, 2023 17:53
Rego error messages are now returned base64 encoded, so direct
error message assertions don't work and we need to decode the
policy decision string first. One of the tests was missing this.

Additionally alpine container has been updated and the layer
digest has changed, so the policy used to check backward compat
is now broken. Update it to have a valid digest.

Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl anmaxvl force-pushed the fix-rego-cri-integration-tests branch from a98efc9 to 3faf405 Compare April 11, 2023 18:27
@anmaxvl anmaxvl merged commit c9f052d into microsoft:main Apr 11, 2023
@anmaxvl anmaxvl deleted the fix-rego-cri-integration-tests branch April 11, 2023 20:42
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.

2 participants