Skip to content

Commit d37a107

Browse files
Merge pull request #239 from jkowalleck/fix-testdata
fixed test data
2 parents df107ea + bc2af5e commit d37a107

8 files changed

Lines changed: 28 additions & 26 deletions

tools/src/test/resources/1.2/invalid-empty-component-1.2.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"bomFormat": "CycloneDX",
3+
"specVersion": "1.2",
4+
"serialNumber": "urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79",
5+
"version": 1,
6+
"components": [
7+
{
8+
"type": "library",
9+
"$comment": "expected to fail, since `name` and `version` are missing. But in fact `name` and `version` are optional as they have a default value in CDX-v1.2"
10+
}
11+
]
12+
}

tools/src/test/resources/1.2/invalid-missing-component-type-1.2.json renamed to tools/src/test/resources/1.2/skip_invalid-missing-component-type-1.2.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"components": [
77
{
88
"name": "acme-library",
9-
"version": "1.0.0"
9+
"version": "1.0.0",
10+
"$comment": "expected to fail, since `type` is missing. But in fact `type` is optional as it has a default value in CDX-v1.2"
1011
}
1112
]
1213
}

tools/src/test/resources/1.2/valid-bom-1.2.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@
129129
],
130130
"commits": [
131131
{
132-
"uid": "123",
133-
"url": "",
132+
"uid": "7638417db6d59f3c431d3e1f261cc637155684cd",
133+
"url": "https://location/to/7638417db6d59f3c431d3e1f261cc637155684cd",
134134
"author": {
135135
"timestamp": "2018-11-13T20:20:39+00:00",
136-
"name": "",
137-
"email": ""
136+
"name": "me",
137+
"email": "me@acme.org"
138138
}
139139
}
140140
]

tools/src/test/resources/1.3/valid-bom-1.3.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@
129129
],
130130
"commits": [
131131
{
132-
"uid": "123",
133-
"url": "",
132+
"uid": "7638417db6d59f3c431d3e1f261cc637155684cd",
133+
"url": "https://location/to/7638417db6d59f3c431d3e1f261cc637155684cd",
134134
"author": {
135135
"timestamp": "2018-11-13T20:20:39+00:00",
136-
"name": "",
137-
"email": ""
136+
"name": "me",
137+
"email": "me@acme.org"
138138
}
139139
}
140140
]

tools/src/test/resources/1.4/valid-bom-1.4.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@
129129
],
130130
"commits": [
131131
{
132-
"uid": "123",
133-
"url": "",
132+
"uid": "7638417db6d59f3c431d3e1f261cc637155684cd",
133+
"url": "https://location/to/7638417db6d59f3c431d3e1f261cc637155684cd",
134134
"author": {
135135
"timestamp": "2018-11-13T20:20:39+00:00",
136-
"name": "",
137-
"email": ""
136+
"name": "me",
137+
"email": "me@acme.org"
138138
}
139139
}
140140
]

tools/src/test/resources/1.4/valid-release-notes-1.4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"contact": [
8181
{
8282
"name": "Support",
83-
"email": "support@partner",
83+
"email": "support@partner.org",
8484
"phone": "800-555-1212"
8585
}
8686
]

tools/src/test/resources/1.4/valid-service-1.4.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"contact": [
3939
{
4040
"name": "Support",
41-
"email": "support@partner",
41+
"email": "support@partner.org",
4242
"phone": "800-555-1212"
4343
}
4444
]

0 commit comments

Comments
 (0)