Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from CycloneDX/ttest_validation_functional
tests: add functional tests for all validators
- Loading branch information
Showing
451 changed files
with
18,050 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*/*.json linguist-vendored | ||
*/*.xml linguist-vendored |
15 changes: 15 additions & 0 deletions
15
tests/_data/schemaTestData/1.1/invalid-component-ref-1.1.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,15 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library" bom-ref="123"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<components> | ||
<component type="library" bom-ref="123"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
</component> | ||
</components> | ||
</component> | ||
</components> | ||
</bom> |
9 changes: 9 additions & 0 deletions
9
tests/_data/schemaTestData/1.1/invalid-component-type-1.1.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,9 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="foo"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
</component> | ||
</components> | ||
</bom> |
7 changes: 7 additions & 0 deletions
7
tests/_data/schemaTestData/1.1/invalid-empty-component-1.1.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,7 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="application"> | ||
</component> | ||
</components> | ||
</bom> |
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 serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="FOO">3942447fac867ae5cdb3229b658f4d48</hash> | ||
<hash alg="SHA-1">e6b1000b94e835ffd37f4c6dcbdad43f4b48a02a</hash> | ||
<hash alg="SHA-256">f498a8ff2dd007e29c2074f5e4b01a9a01775c3ff3aeaf6906ea503bc5791b7b</hash> | ||
<hash alg="SHA-512">e8f33e424f3f4ed6db76a482fde1a5298970e442c531729119e37991884bdffab4f9426b7ee11fccd074eeda0634d71697d6f88a460dce0ac8d627a29f7d1282</hash> | ||
</hashes> | ||
</component> | ||
</components> | ||
</bom> |
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 serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="MD5">foo</hash> | ||
<hash alg="SHA-1">e6b1000b94e835ffd37f4c6dcbdad43f4b48a02a</hash> | ||
<hash alg="SHA-256">f498a8ff2dd007e29c2074f5e4b01a9a01775c3ff3aeaf6906ea503bc5791b7b</hash> | ||
<hash alg="SHA-512">e8f33e424f3f4ed6db76a482fde1a5298970e442c531729119e37991884bdffab4f9426b7ee11fccd074eeda0634d71697d6f88a460dce0ac8d627a29f7d1282</hash> | ||
</hashes> | ||
</component> | ||
</components> | ||
</bom> |
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 serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="MD5">3942447fac867ae5cdb3229b658f4d48</hash> | ||
<hash alg="SHA-1">foo</hash> | ||
<hash alg="SHA-256">f498a8ff2dd007e29c2074f5e4b01a9a01775c3ff3aeaf6906ea503bc5791b7b</hash> | ||
<hash alg="SHA-512">e8f33e424f3f4ed6db76a482fde1a5298970e442c531729119e37991884bdffab4f9426b7ee11fccd074eeda0634d71697d6f88a460dce0ac8d627a29f7d1282</hash> | ||
</hashes> | ||
</component> | ||
</components> | ||
</bom> |
16 changes: 16 additions & 0 deletions
16
tests/_data/schemaTestData/1.1/invalid-hash-sha256-1.1.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 serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="MD5">3942447fac867ae5cdb3229b658f4d48</hash> | ||
<hash alg="SHA-1">e6b1000b94e835ffd37f4c6dcbdad43f4b48a02a</hash> | ||
<hash alg="SHA-256">foo</hash> | ||
<hash alg="SHA-512">e8f33e424f3f4ed6db76a482fde1a5298970e442c531729119e37991884bdffab4f9426b7ee11fccd074eeda0634d71697d6f88a460dce0ac8d627a29f7d1282</hash> | ||
</hashes> | ||
</component> | ||
</components> | ||
</bom> |
16 changes: 16 additions & 0 deletions
16
tests/_data/schemaTestData/1.1/invalid-hash-sha512-1.1.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 serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="library"> | ||
<name>acme-library</name> | ||
<version>1.0.0</version> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="MD5">3942447fac867ae5cdb3229b658f4d48</hash> | ||
<hash alg="SHA-1">e6b1000b94e835ffd37f4c6dcbdad43f4b48a02a</hash> | ||
<hash alg="SHA-256">f498a8ff2dd007e29c2074f5e4b01a9a01775c3ff3aeaf6906ea503bc5791b7b</hash> | ||
<hash alg="SHA-512">foo</hash> | ||
</hashes> | ||
</component> | ||
</components> | ||
</bom> |
26 changes: 26 additions & 0 deletions
26
tests/_data/schemaTestData/1.1/invalid-license-choice-1.1.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,26 @@ | ||
<?xml version="1.0"?> | ||
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.1"> | ||
<components> | ||
<component type="application"> | ||
<publisher>Acme Inc</publisher> | ||
<group>com.acme</group> | ||
<name>tomcat-catalina</name> | ||
<version>9.0.14</version> | ||
<description>Modified version of Apache Catalina</description> | ||
<scope>required</scope> | ||
<hashes> | ||
<hash alg="MD5">3942447fac867ae5cdb3229b658f4d48</hash> | ||
<hash alg="SHA-1">e6b1000b94e835ffd37f4c6dcbdad43f4b48a02a</hash> | ||
<hash alg="SHA-256">f498a8ff2dd007e29c2074f5e4b01a9a01775c3ff3aeaf6906ea503bc5791b7b</hash> | ||
<hash alg="SHA-512">e8f33e424f3f4ed6db76a482fde1a5298970e442c531729119e37991884bdffab4f9426b7ee11fccd074eeda0634d71697d6f88a460dce0ac8d627a29f7d1282</hash> | ||
</hashes> | ||
<licenses> | ||
<license> | ||
<id>Apache-2.0</id> | ||
</license> | ||
<expression>EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0</expression> | ||
</licenses> | ||
<purl>pkg:maven/com.acme/tomcat-catalina@9.0.14?packaging=jar</purl> | ||
</component> | ||
</components> | ||
</bom> |
Oops, something went wrong.