-
-
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.
Added XML serializations decorators, enum test cases
- Loading branch information
Showing
16 changed files
with
561 additions
and
132 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
4 changes: 4 additions & 0 deletions
4
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,4 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.0" version="1"> | ||
<components/> | ||
</bom> |
4 changes: 4 additions & 0 deletions
4
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,4 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.1" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1"> | ||
<components/> | ||
</bom> |
17 changes: 17 additions & 0 deletions
17
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,17 @@ | ||
{ | ||
"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" | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,13 @@ | ||
<?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> | ||
</bom> |
17 changes: 17 additions & 0 deletions
17
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,17 @@ | ||
{ | ||
"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" | ||
} |
13 changes: 13 additions & 0 deletions
13
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-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,13 @@ | ||
<?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> | ||
</bom> |
17 changes: 17 additions & 0 deletions
17
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-1.4.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,17 @@ | ||
{ | ||
"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.4.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.4" | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-1.4.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,14 @@ | ||
|
||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.4" 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> | ||
</bom> |
73 changes: 73 additions & 0 deletions
73
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-1.5.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,73 @@ | ||
{ | ||
"components": [ | ||
{ | ||
"bom-ref": "dummy", | ||
"name": "dummy", | ||
"type": "application", | ||
"evidence": { | ||
"identity": { | ||
"field": "group" | ||
} | ||
} | ||
} | ||
], | ||
"metadata": { | ||
"timestamp": "2023-01-07T13:44:32.312678+00:00", | ||
"tools": [ | ||
{ | ||
"externalReferences": [ | ||
{ | ||
"type": "build-system", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/actions" | ||
}, | ||
{ | ||
"type": "distribution", | ||
"url": "https://pypi.org/project/cyclonedx-python-lib/" | ||
}, | ||
{ | ||
"type": "documentation", | ||
"url": "https://cyclonedx-python-library.readthedocs.io/" | ||
}, | ||
{ | ||
"type": "issue-tracker", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/issues" | ||
}, | ||
{ | ||
"type": "license", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE" | ||
}, | ||
{ | ||
"type": "release-notes", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md" | ||
}, | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib" | ||
}, | ||
{ | ||
"type": "website", | ||
"url": "https://github.com/CycloneDX/cyclonedx-python-lib/#readme" | ||
} | ||
], | ||
"name": "cyclonedx-python-lib", | ||
"vendor": "CycloneDX", | ||
"version": "TESTING" | ||
} | ||
] | ||
}, | ||
"properties": [ | ||
{ | ||
"name": "key1", | ||
"value": "val1" | ||
}, | ||
{ | ||
"name": "key2", | ||
"value": "val2" | ||
} | ||
], | ||
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac", | ||
"version": 1, | ||
"$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json", | ||
"bomFormat": "CycloneDX", | ||
"specVersion": "1.5" | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/_data/snapshots/enum_ComponentIdentityEvidenceField-1.5.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,53 @@ | ||
<?xml version="1.0" ?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.5" 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> | ||
<externalReferences> | ||
<reference type="build-system"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/actions</url> | ||
</reference> | ||
<reference type="distribution"> | ||
<url>https://pypi.org/project/cyclonedx-python-lib/</url> | ||
</reference> | ||
<reference type="documentation"> | ||
<url>https://cyclonedx-python-library.readthedocs.io/</url> | ||
</reference> | ||
<reference type="issue-tracker"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/issues</url> | ||
</reference> | ||
<reference type="license"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE</url> | ||
</reference> | ||
<reference type="release-notes"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md</url> | ||
</reference> | ||
<reference type="vcs"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib</url> | ||
</reference> | ||
<reference type="website"> | ||
<url>https://github.com/CycloneDX/cyclonedx-python-lib/#readme</url> | ||
</reference> | ||
</externalReferences> | ||
</tool> | ||
</tools> | ||
</metadata> | ||
<components> | ||
<component type="application" bom-ref="scoped"> | ||
<name>dummy</name> | ||
<evidence> | ||
<identity> | ||
<field>group</field> | ||
</identity> | ||
</evidence> | ||
</component> | ||
</components> | ||
<properties> | ||
<property name="key1">val1</property> | ||
<property name="key2">val2</property> | ||
</properties> | ||
</bom> |
Oops, something went wrong.