Skip to content

Commit 394cc87

Browse files
authored
tests: fetched schema 1.5 test data from spec (#536)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 8f81322 commit 394cc87

File tree

122 files changed

+6078
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+6078
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bomFormat": "AnotherFormat",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
]
8+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"type": "library",
9+
"bom-ref": "123",
10+
"name": "acme-library",
11+
"version": "1.0.0"
12+
},
13+
{
14+
"type": "library",
15+
"bom-ref": "123",
16+
"name": "acme-library",
17+
"version": "1.0.0"
18+
},
19+
{
20+
"type": "library",
21+
"bom-ref": "",
22+
"name": "acme-library",
23+
"version": "1.0.0"
24+
}
25+
]
26+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0"?>
2+
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.5">
3+
<components>
4+
<component type="library" bom-ref="123">
5+
<name>acme-library</name>
6+
<version>1.0.0</version>
7+
<components>
8+
<component type="library" bom-ref="123">
9+
<!-- duplicate value in attribute `bom-ref` -->
10+
<name>acme-library</name>
11+
<version>1.0.0</version>
12+
</component>
13+
<component type="library" bom-ref="">
14+
<!-- empty value in attribute `bom-ref` -->
15+
<name>acme-library</name>
16+
<version>1.0.0</version>
17+
</component>
18+
</components>
19+
</component>
20+
</components>
21+
</bom>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"type": "application",
9+
"author": "Acme Super Heros",
10+
"name": "Acme Application",
11+
"version": "9.1.1",
12+
"swid": {
13+
"name": "Acme Application",
14+
"version": "9.1.1"
15+
}
16+
}
17+
]
18+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.5">
3+
<components>
4+
<component type="application">
5+
<author>Acme Super Heros</author>
6+
<name>Acme Application</name>
7+
<version>9.1.1</version>
8+
<swid name="Acme Application" version="9.1.1" />
9+
</component>
10+
</components>
11+
</bom>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"type": "foo",
9+
"name": "acme-library",
10+
"version": "1.0.0"
11+
}
12+
]
13+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.5">
3+
<components>
4+
<component type="foo">
5+
<name>acme-library</name>
6+
<version>1.0.0</version>
7+
</component>
8+
</components>
9+
</bom>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"bom-ref": "library-a",
9+
"type": "library",
10+
"name": "library-a",
11+
"version": "1.0.0"
12+
},
13+
{
14+
"bom-ref": "library-b",
15+
"type": "library",
16+
"name": "library-b",
17+
"version": "1.0.0"
18+
},
19+
{
20+
"bom-ref": "library-c",
21+
"type": "library",
22+
"name": "library-c",
23+
"version": "1.0.0"
24+
}
25+
],
26+
"dependencies": [
27+
{
28+
"dependsOn": []
29+
},
30+
{
31+
"ref": "",
32+
"dependsOn": [
33+
"library-a"
34+
]
35+
},
36+
{
37+
"ref": "library-b",
38+
"dependsOn": [
39+
"library-c"
40+
]
41+
}
42+
]
43+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0"?>
2+
<bom serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" version="1" xmlns="http://cyclonedx.org/schema/bom/1.5">
3+
<components>
4+
<component type="library" bom-ref="library-a">
5+
<name>acme-library-a</name>
6+
<version>1.0.0</version>
7+
</component>
8+
<component type="library" bom-ref="library-b">
9+
<name>acme-library-b</name>
10+
<version>1.0.0</version>
11+
</component>
12+
<component type="library" bom-ref="library-c">
13+
<name>acme-library-b</name>
14+
<version>1.0.0</version>
15+
</component>
16+
</components>
17+
<dependencies>
18+
<dependency>
19+
<!-- invalid: missing attribute `ref` -->
20+
</dependency>
21+
<dependency ref="">
22+
<!-- invalid: attribute `ref` is empty -->
23+
<dependency ref="library-a"/>
24+
</dependency>
25+
<dependency ref="library-b">
26+
<dependency ref="library-c">
27+
<!-- valid -->
28+
</dependency>
29+
</dependency>
30+
</dependencies>
31+
</bom>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.5",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"type": "library"
9+
}
10+
]
11+
}

0 commit comments

Comments
 (0)