diff options
Diffstat (limited to 'tests/lib-sbom-files/basic.json')
| -rw-r--r-- | tests/lib-sbom-files/basic.json | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tests/lib-sbom-files/basic.json b/tests/lib-sbom-files/basic.json new file mode 100644 index 000000000000..3b241ff3442d --- /dev/null +++ b/tests/lib-sbom-files/basic.json @@ -0,0 +1,90 @@ +{ + "@context": "https://spdx.org/rdf/3.0.1/spdx-context.jsonld", + "@graph": [ + { + "type": "Agent", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/Agent/default", + "name": "Default" + }, + { + "type": "CreationInfo", + "@id": "_:creationinfo_1", + "created": "test", + "createdBy": [ + "https://github.com/pkgconf/pkgconf/Agent/default" + ], + "specVersion": "3.0.1" + }, + { + "type": "simplelicensing_LicenseExpression", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/simplelicensing_LicenseExpression/BSD-4-Clause", + "simplelicensing_licenseExpression": "BSD-4-Clause" + }, + { + "type": "software_Sbom", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/software_Sbom/test3", + "software_sbomType": [ + "build" + ], + "rootElement": [ + "https://github.com/pkgconf/pkgconf/Package/test3" + ], + "element": [ + "https://github.com/pkgconf/pkgconf/Relationship/test3/hasDeclaredLicense", + "https://github.com/pkgconf/pkgconf/Relationship/test3/hasConcludedLicense" + ] + }, + { + "type": "software_Package", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/Package/test3", + "name": "test3", + "originatedBy": [ + "https://github.com/pkgconf/pkgconf/Agent/default" + ], + "software_copyrightText": "Test3 copyright text", + "software_homePage": "https://github.com/pkgconf/pkgconf/", + "software_downloadLocation": "https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-2.5.1.tar.gz", + "software_packageVersion": "3.0.0" + }, + { + "type": "Relationship", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/Relationship/test3/hasDeclaredLicense", + "from": "https://github.com/pkgconf/pkgconf/Package/test3", + "to": [ + "https://github.com/pkgconf/pkgconf/simplelicensing_LicenseExpression/BSD-4-Clause" + ], + "relationshipType": "hasDeclaredLicense" + }, + { + "type": "Relationship", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/Relationship/test3/hasConcludedLicense", + "from": "https://github.com/pkgconf/pkgconf/Package/test3", + "to": [ + "https://github.com/pkgconf/pkgconf/simplelicensing_LicenseExpression/BSD-4-Clause" + ], + "relationshipType": "hasConcludedLicense" + }, + { + "type": "SpdxDocument", + "creationInfo": "_:creationinfo_1", + "spdxId": "https://github.com/pkgconf/pkgconf/spdxDocument/1", + "rootElement": [ + "https://github.com/pkgconf/pkgconf/software_Sbom/test3" + ], + "element": [ + "https://github.com/pkgconf/pkgconf/Agent/default", + "https://github.com/pkgconf/pkgconf/simplelicensing_LicenseExpression/BSD-4-Clause", + "https://github.com/pkgconf/pkgconf/Relationship/test3/hasDeclaredLicense", + "https://github.com/pkgconf/pkgconf/Relationship/test3/hasConcludedLicense", + "https://github.com/pkgconf/pkgconf/software_Sbom/test3", + "https://github.com/pkgconf/pkgconf/Package/test3" + ] + } + ] +} |
