You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating unittests or working with SBOM's in general, it can be helpful to compare SBOMs to see if they are the same or not. We would like to do this in a way that order-agnostic for dictionaries and lists within an SBOM.
Functionality should be added to the SBOM class (maybe an overrideing of the eq function) that allows a user to accurately compare all the lists (hardware, software, systems, relationships, etc) to check if two sboms are the same in a meaningful way.
As of now, the cli unit tests contains a basic implementation of this that sorts each list by UUID and compares after sorting. Some thought should be put into if this is the best way, and then the functionality can be moved to a more universal location.
It could also be useful to show the difference in two SBOMs, but the basic functionality that should exist is checking if two SBOMs are equivalent or not.
The text was updated successfully, but these errors were encountered:
When creating unittests or working with SBOM's in general, it can be helpful to compare SBOMs to see if they are the same or not. We would like to do this in a way that order-agnostic for dictionaries and lists within an SBOM.
Functionality should be added to the SBOM class (maybe an overrideing of the eq function) that allows a user to accurately compare all the lists (hardware, software, systems, relationships, etc) to check if two sboms are the same in a meaningful way.
As of now, the cli unit tests contains a basic implementation of this that sorts each list by UUID and compares after sorting. Some thought should be put into if this is the best way, and then the functionality can be moved to a more universal location.
It could also be useful to show the difference in two SBOMs, but the basic functionality that should exist is checking if two SBOMs are equivalent or not.
The text was updated successfully, but these errors were encountered: