-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Horton <[email protected]>
- Loading branch information
Showing
14 changed files
with
893 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tests/_data/snapshots/get_bom_with_compositions_migrate-1.0.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1"> | ||
<components> | ||
<component type="library"> | ||
<name>setuptools</name> | ||
<version>50.3.2</version> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
<modified>false</modified> | ||
</component> | ||
<component type="library"> | ||
<name>toml</name> | ||
<version>0.10.2</version> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
<modified>false</modified> | ||
</component> | ||
</components> | ||
</bom> |
29 changes: 29 additions & 0 deletions
29
tests/_data/snapshots/get_bom_with_compositions_migrate-1.1.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.1" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<components> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<name>setuptools</name> | ||
<version>50.3.2</version> | ||
<licenses> | ||
<license> | ||
<id>MIT</id> | ||
</license> | ||
</licenses> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
</component> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<name>toml</name> | ||
<version>0.10.2</version> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
<externalReferences> | ||
<reference type="distribution"> | ||
<url>https://cyclonedx.org</url> | ||
<comment>No comment</comment> | ||
</reference> | ||
</externalReferences> | ||
</component> | ||
</components> | ||
</bom> |
62 changes: 62 additions & 0 deletions
62
tests/_data/snapshots/get_bom_with_compositions_migrate-1.2.json.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"author": "Test Author", | ||
"bom-ref": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"licenses": [ | ||
{ | ||
"license": { | ||
"id": "MIT" | ||
} | ||
} | ||
], | ||
"name": "setuptools", | ||
"purl": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"type": "library", | ||
"version": "50.3.2" | ||
}, | ||
{ | ||
"bom-ref": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"externalReferences": [ | ||
{ | ||
"comment": "No comment", | ||
"type": "distribution", | ||
"url": "https://cyclonedx.org" | ||
} | ||
], | ||
"hashes": [ | ||
{ | ||
"alg": "SHA-256", | ||
"content": "806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" | ||
} | ||
], | ||
"name": "toml", | ||
"purl": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"type": "library", | ||
"version": "0.10.2" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "pkg:pypi/[email protected]?extension=tar.gz" | ||
}, | ||
{ | ||
"ref": "pkg:pypi/[email protected]?extension=tar.gz" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.2" | ||
} |
44 changes: 44 additions & 0 deletions
44
tests/_data/snapshots/get_bom_with_compositions_migrate-1.2.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.2" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<metadata> | ||
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>CycloneDX</vendor> | ||
<name>cyclonedx-python-lib</name> | ||
<version>TESTING</version> | ||
</tool> | ||
</tools> | ||
</metadata> | ||
<components> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<author>Test Author</author> | ||
<name>setuptools</name> | ||
<version>50.3.2</version> | ||
<licenses> | ||
<license> | ||
<id>MIT</id> | ||
</license> | ||
</licenses> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
</component> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<name>toml</name> | ||
<version>0.10.2</version> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
<externalReferences> | ||
<reference type="distribution"> | ||
<url>https://cyclonedx.org</url> | ||
<comment>No comment</comment> | ||
</reference> | ||
</externalReferences> | ||
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="pkg:pypi/[email protected]?extension=tar.gz"/> | ||
<dependency ref="pkg:pypi/[email protected]?extension=tar.gz"/> | ||
</dependencies> | ||
</bom> |
68 changes: 68 additions & 0 deletions
68
tests/_data/snapshots/get_bom_with_compositions_migrate-1.3.json.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"author": "Test Author", | ||
"bom-ref": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"licenses": [ | ||
{ | ||
"license": { | ||
"id": "MIT" | ||
} | ||
} | ||
], | ||
"name": "setuptools", | ||
"purl": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"type": "library", | ||
"version": "50.3.2" | ||
}, | ||
{ | ||
"bom-ref": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"externalReferences": [ | ||
{ | ||
"comment": "No comment", | ||
"hashes": [ | ||
{ | ||
"alg": "SHA-256", | ||
"content": "806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" | ||
} | ||
], | ||
"type": "distribution", | ||
"url": "https://cyclonedx.org" | ||
} | ||
], | ||
"hashes": [ | ||
{ | ||
"alg": "SHA-256", | ||
"content": "806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b" | ||
} | ||
], | ||
"name": "toml", | ||
"purl": "pkg:pypi/[email protected]?extension=tar.gz", | ||
"type": "library", | ||
"version": "0.10.2" | ||
} | ||
], | ||
"dependencies": [ | ||
{ | ||
"ref": "pkg:pypi/[email protected]?extension=tar.gz" | ||
}, | ||
{ | ||
"ref": "pkg:pypi/[email protected]?extension=tar.gz" | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.3a.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.3" | ||
} |
47 changes: 47 additions & 0 deletions
47
tests/_data/snapshots/get_bom_with_compositions_migrate-1.3.xml.bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.3" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<metadata> | ||
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp> | ||
<tools> | ||
<tool> | ||
<vendor>CycloneDX</vendor> | ||
<name>cyclonedx-python-lib</name> | ||
<version>TESTING</version> | ||
</tool> | ||
</tools> | ||
</metadata> | ||
<components> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<author>Test Author</author> | ||
<name>setuptools</name> | ||
<version>50.3.2</version> | ||
<licenses> | ||
<license> | ||
<id>MIT</id> | ||
</license> | ||
</licenses> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
</component> | ||
<component type="library" bom-ref="pkg:pypi/[email protected]?extension=tar.gz"> | ||
<name>toml</name> | ||
<version>0.10.2</version> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
<purl>pkg:pypi/[email protected]?extension=tar.gz</purl> | ||
<externalReferences> | ||
<reference type="distribution"> | ||
<url>https://cyclonedx.org</url> | ||
<comment>No comment</comment> | ||
<hashes> | ||
<hash alg="SHA-256">806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b</hash> | ||
</hashes> | ||
</reference> | ||
</externalReferences> | ||
</component> | ||
</components> | ||
<dependencies> | ||
<dependency ref="pkg:pypi/[email protected]?extension=tar.gz"/> | ||
<dependency ref="pkg:pypi/[email protected]?extension=tar.gz"/> | ||
</dependencies> | ||
</bom> |
Oops, something went wrong.