-
-
Notifications
You must be signed in to change notification settings - Fork 58
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: Jan Kowalleck <[email protected]>
- Loading branch information
1 parent
25a7e94
commit 04251bf
Showing
8 changed files
with
114 additions
and
8 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
16 changes: 16 additions & 0 deletions
16
...rc/test/resources/1.6/informal-invalid-component-versionRange-non-extraneous-explicit.xml
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,16 @@ | ||
<?xml version="1.0"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<!-- | ||
this would be formal, if the support for XSD1.1's `assert` was properly implemented | ||
in validators and tools digesting XML. | ||
--> | ||
<components> | ||
<component type="library" isExtraneous="false"> | ||
<name>InvalidVersions</name> | ||
<versionRange><![CDATA[>=9.0.0|<10.0.0]]></versionRange> | ||
<description>versionRange may only exist on extraneous components, set `isExtraneous` explicit</description> | ||
</component> | ||
</components> | ||
</bom> |
17 changes: 17 additions & 0 deletions
17
...rc/test/resources/1.6/informal-invalid-component-versionRange-non-extraneous-implicit.xml
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 @@ | ||
<?xml version="1.0"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<!-- | ||
this would be formal, if the support for XSD1.1's `assert` was properly implemented | ||
in validators and tools digesting XML. | ||
--> | ||
<components> | ||
<component type="library"> | ||
<!-- @isExtraneous defaults to `false` --> | ||
<name>InvalidVersions</name> | ||
<versionRange><![CDATA[>=9.0.0|<10.0.0]]></versionRange> | ||
<description>versionRange may only exist on extraneous components, set `isExtraneous` implicit by default value</description> | ||
</component> | ||
</components> | ||
</bom> |
13 changes: 13 additions & 0 deletions
13
tools/src/test/resources/1.6/invalid-component-version-and-range.xml
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.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<components> | ||
<component type="library" isExtraneous="false"> | ||
<name>InvalidVersions</name> | ||
<version>9.0.14</version> | ||
<versionRange><![CDATA[>=9.0.0|<10.0.0]]></versionRange> | ||
<description>may have `version` or `versionRange`, not both. This one does - it is invalid</description> | ||
</component> | ||
</components> | ||
</bom> |
11 changes: 11 additions & 0 deletions
11
tools/src/test/resources/1.6/valid-component-extraneous-no-version-information.xml
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,11 @@ | ||
<?xml version="1.0"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<components> | ||
<component type="library" isExtraneous="true"> | ||
<name>Foo</name> | ||
<description>extraneous without any version constraints</description> | ||
</component> | ||
</components> | ||
</bom> |
12 changes: 12 additions & 0 deletions
12
tools/src/test/resources/1.6/valid-component-extraneous-with-version.xml
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,12 @@ | ||
<?xml version="1.0"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<components> | ||
<component type="library" isExtraneous="true"> | ||
<name>Foo</name> | ||
<version>9.1.24</version> | ||
<description>extraneous with version constraint</description> | ||
</component> | ||
</components> | ||
</bom> |
12 changes: 12 additions & 0 deletions
12
tools/src/test/resources/1.6/valid-component-extraneous-with-versionRange.xml
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,12 @@ | ||
<?xml version="1.0"?> | ||
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" | ||
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" | ||
> | ||
<components> | ||
<component type="library" isExtraneous="true"> | ||
<name>Foo</name> | ||
<versionRange><![CDATA[>=9.0.0|<10.0.0]]></versionRange> | ||
<description>extraneous with version range constraints</description> | ||
</component> | ||
</components> | ||
</bom> |