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

Simplify SBOM test assertions #272

Merged
merged 3 commits into from
Jan 3, 2022
Merged

Simplify SBOM test assertions #272

merged 3 commits into from
Jan 3, 2022

Conversation

fg-j
Copy link

@fg-j fg-j commented Dec 23, 2021

Summary

I have noticed over the past weeks that our SBOM tests were quite brittle – frequently requiring intervention when upgrading syft versions – despite there not being important changes to the outputted JSON. I took a shot at stripping down the assertions to minimize the amount we're just testing syft's functionality.

Use Cases

Checklist

  • I have viewed, signed, and submitted the Contributor License Agreement.
  • I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
  • I have added an integration test, if necessary.
  • I have reviewed the styleguide for guidance on my code quality.
  • I'm happy with the commit history on this PR (I have rebased/squashed as needed).

to avoid brittleness from irrelevant SBOM content changes
@fg-j fg-j requested a review from a team as a code owner December 23, 2021 22:39
sbom/sbom_test.go Outdated Show resolved Hide resolved
sbom/sbom_test.go Outdated Show resolved Hide resolved
@sophiewigmore
Copy link
Member

@fg-j it looks like a couple structs got left behind and are causing linting errors. Once that's fixed this PR is good!

@fg-j fg-j requested a review from sophiewigmore January 3, 2022 19:53
@fg-j fg-j added the semver:patch A change requiring a patch version bump label Jan 3, 2022
@sophiewigmore sophiewigmore merged commit 56c823a into v2 Jan 3, 2022
@sophiewigmore sophiewigmore deleted the sbom-test-refactor branch January 3, 2022 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants