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

chore: add snapshot tests to Amazon provider #337

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

willmurphyscode
Copy link
Contributor

@willmurphyscode willmurphyscode commented Oct 18, 2023

Also sort previously non-deterministic parts of the output so that the snapshot comparison can be deterministic.

See #309.

Because there are changes to the provider itself, I've done the following additional testing:

  1. Run the quality gate on this PR.
  2. In a shell from make dev providers=amazon, run make update-db, and then grype amazonlinux:2.0.20230926.0 and compared that to running the same grype command outside the development shell, and it finds the same set of vulnerabilities.

Also sort previously non-deterministic parts of the output so that the
snapshot comparison can be deterministic.

Signed-off-by: Will Murphy <[email protected]>
@willmurphyscode willmurphyscode added provider:amazon Relating to the Amazon provider run-pr-quality-gate Triggers running of quality gate on PRs labels Oct 18, 2023
@willmurphyscode willmurphyscode marked this pull request as ready for review October 18, 2023 16:05
@willmurphyscode willmurphyscode requested a review from a team October 18, 2023 16:06
@willmurphyscode willmurphyscode merged commit 788305d into main Oct 18, 2023
10 of 12 checks passed
@willmurphyscode willmurphyscode deleted the chore/snapshot-tests-in-amazon-provider branch October 18, 2023 16:48
@wagoodman wagoodman removed the run-pr-quality-gate Triggers running of quality gate on PRs label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider:amazon Relating to the Amazon provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants