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

Add basic test coverage support to alma-sbom #17

Open
javihernandez opened this issue Jul 27, 2023 · 1 comment
Open

Add basic test coverage support to alma-sbom #17

javihernandez opened this issue Jul 27, 2023 · 1 comment

Comments

@javihernandez
Copy link
Member

As the SPDX format support is going to be merged any time soon, we think that we should add very basic testing support.
To me, the lowest hanging fruits could be:

  • Testing that we can export both builds and packages SBOMs into any supported spec/format
  • Check that the resulting SBOMs are the expected (we can provide a bunch of generated SBOMs documents that we can compare the results with)

And I'd say, we need to:

  • Add pytest into alma-sbom
  • Create the lowest hanging fruits tests as mentioned above
  • Set up a Github action that runs the tests
@m10k
Copy link
Member

m10k commented Jul 28, 2023

To figure out if the generated spdx-xml and spdx-json files have the expected properties/annotations, we could also create XML Schema and JSON Schema files to validate SBOMs against.
Schema creation is a bit of work, but they could serve a dual purpose as documentation, since they tell the user/developer what kind of information is contained in the SBOMs.

@forbiddenpotato forbiddenpotato moved this from Unsorted to Backlog in AlmaLinux Build System Sep 19, 2023
@forbiddenpotato forbiddenpotato moved this from Backlog to Ready for dev in AlmaLinux Build System Jan 30, 2024
@forbiddenpotato forbiddenpotato moved this from Ready for dev to Backlog in AlmaLinux Build System Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants