Skip to content

Commit c6c508f

Browse files
committed
tests: style
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 86bae15 commit c6c508f

20 files changed

Lines changed: 181 additions & 82 deletions

tools/src/test/resources/1.7/invalid-citations-1.7.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"citations": [
2626
{
2727
"bom-ref": "citation-1",
28-
"pointers": [ "/components/0/name" ],
28+
"pointers": ["/components/0/name"],
2929
"timestamp": "2025-05-01T14:00:00Z",
3030
"note": "Should have at least one of the following property sets: property 'attributedTo' or property 'process'"
3131
},
3232
{
3333
"bom-ref": "citation-1",
34-
"pointers": [ "/components/0/name" ],
35-
"expressions": [ "$..[?(@.bom-ref=='component-1')].version" ],
34+
"pointers": ["/components/0/name"],
35+
"expressions": ["$..[?(@.bom-ref=='component-1')].version"],
3636
"timestamp": "2025-05-01T14:00:00Z",
3737
"note": "Should not have both a pointer and expression."
3838
}

tools/src/test/resources/1.7/valid-annotation-1.7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"url": [
7979
"https://partner.org"
8080
],
81-
"contact" : [
81+
"contact": [
8282
{
8383
"name": "Support",
8484
"email": "support@partner.org",

tools/src/test/resources/1.7/valid-attestation-1.7.json

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"map": [
2222
{
2323
"requirement": "requirement-1",
24-
"claims": [ "claim-1" ],
25-
"counterClaims": [ "counterClaim-1" ],
24+
"claims": ["claim-1"],
25+
"counterClaims": ["counterClaim-1"],
2626
"conformance": {
2727
"score": 0.8,
2828
"rationale": "Conformance rationale here",
29-
"mitigationStrategies": [ "mitigationStrategy-1" ]
29+
"mitigationStrategies": ["mitigationStrategy-1"]
3030
},
3131
"confidence": {
3232
"score": 1,
@@ -36,7 +36,10 @@
3636
],
3737
"signature": {
3838
"algorithm": "ES256",
39-
"certificatePath": [ "MIIB...", "MIID..." ],
39+
"certificatePath": [
40+
"MIIB...",
41+
"MIID..."
42+
],
4043
"value": "tqIT..."
4144
}
4245
}
@@ -46,10 +49,10 @@
4649
"bom-ref": "claim-1",
4750
"target": "acme-inc",
4851
"predicate": "Predicate here",
49-
"mitigationStrategies": [ "mitigationStrategy-1" ],
52+
"mitigationStrategies": ["mitigationStrategy-1"],
5053
"reasoning": "Reasoning here",
51-
"evidence": [ "evidence-1" ],
52-
"counterEvidence": [ "counterEvidence-1" ],
54+
"evidence": ["evidence-1"],
55+
"counterEvidence": ["counterEvidence-1"],
5356
"externalReferences": [
5457
{
5558
"type": "issue-tracker",
@@ -58,7 +61,10 @@
5861
],
5962
"signature": {
6063
"algorithm": "ES256",
61-
"certificatePath": [ "MIIB...", "MIID..." ],
64+
"certificatePath": [
65+
"MIIB...",
66+
"MIID..."
67+
],
6268
"value": "tqIT..."
6369
}
6470
}
@@ -78,7 +84,7 @@
7884
}
7985
},
8086
"classification": "PII",
81-
"sensitiveData": [ "Describe sensitive data here" ]
87+
"sensitiveData": ["Describe sensitive data here"]
8288
}
8389
],
8490
"created": "2023-04-25T00:00:00+00:00",
@@ -91,7 +97,10 @@
9197
},
9298
"signature": {
9399
"algorithm": "ES256",
94-
"certificatePath": [ "MIIB...", "MIID..." ],
100+
"certificatePath": [
101+
"MIIB...",
102+
"MIID..."
103+
],
95104
"value": "tqIT..."
96105
}
97106
},
@@ -109,7 +118,7 @@
109118
}
110119
},
111120
"classification": "Public",
112-
"sensitiveData": [ "Describe sensitive data here" ]
121+
"sensitiveData": ["Describe sensitive data here"]
113122
}
114123
],
115124
"created": "2023-04-25T00:00:00+00:00",
@@ -122,7 +131,10 @@
122131
},
123132
"signature": {
124133
"algorithm": "ES256",
125-
"certificatePath": [ "MIIB...", "MIID..." ],
134+
"certificatePath": [
135+
"MIIB...",
136+
"MIID..."
137+
],
126138
"value": "tqIT..."
127139
}
128140
},
@@ -140,7 +152,7 @@
140152
}
141153
},
142154
"classification": "Company Confidential",
143-
"sensitiveData": [ "Describe sensitive data here" ]
155+
"sensitiveData": ["Describe sensitive data here"]
144156
}
145157
],
146158
"created": "2023-04-25T00:00:00+00:00",
@@ -153,7 +165,10 @@
153165
},
154166
"signature": {
155167
"algorithm": "ES256",
156-
"certificatePath": [ "MIIB...", "MIID..." ],
168+
"certificatePath": [
169+
"MIIB...",
170+
"MIID..."
171+
],
157172
"value": "tqIT..."
158173
}
159174
}
@@ -174,7 +189,10 @@
174189
"role": "CEO",
175190
"signature": {
176191
"algorithm": "ES256",
177-
"certificatePath": [ "MIIB...", "MIID..." ],
192+
"certificatePath": [
193+
"MIIB...",
194+
"MIID..."
195+
],
178196
"value": "tqIT..."
179197
}
180198
},
@@ -192,19 +210,28 @@
192210
],
193211
"signature": {
194212
"algorithm": "ES256",
195-
"certificatePath": [ "MIIB...", "MIID..." ],
213+
"certificatePath": [
214+
"MIIB...",
215+
"MIID..."
216+
],
196217
"value": "tqIT..."
197218
}
198219
},
199220
"signature": {
200221
"algorithm": "ES256",
201-
"certificatePath": [ "MIIB...", "MIID..." ],
222+
"certificatePath": [
223+
"MIIB...",
224+
"MIID..."
225+
],
202226
"value": "tqIT..."
203227
}
204228
},
205229
"signature": {
206230
"algorithm": "ES256",
207-
"certificatePath": [ "MIIB...", "MIID..." ],
231+
"certificatePath": [
232+
"MIIB...",
233+
"MIID..."
234+
],
208235
"value": "tqIT..."
209236
}
210237
}

tools/src/test/resources/1.7/valid-citations-1.7.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,28 @@
3232
"citations": [
3333
{
3434
"bom-ref": "citation-1",
35-
"pointers": [ "/components/0/name" ],
35+
"pointers": ["/components/0/name"],
3636
"timestamp": "2025-05-01T14:00:00Z",
3737
"attributedTo": "person-1",
3838
"note": "Manually entered by Alice Example - with `attributedTo`"
3939
},
4040
{
4141
"bom-ref": "citation-2",
42-
"pointers": [ "/components/0/name" ],
42+
"pointers": ["/components/0/name"],
4343
"timestamp": "2025-05-01T14:00:00Z",
4444
"process": "task-license-scan",
4545
"note": "Semi-manually entered by Alice Example - with `process`"
4646
},
4747
{
4848
"bom-ref": "citation-3",
49-
"expressions": [ "$..[?(@.bom-ref=='component-1')].version" ],
49+
"expressions": ["$..[?(@.bom-ref=='component-1')].version"],
5050
"timestamp": "2025-05-01T14:00:00Z",
5151
"process": "task-license-scan",
5252
"note": "Semi-manually entered by Alice Example - with `process`"
5353
},
5454
{
5555
"bom-ref": "citation-4",
56-
"expressions": [ "$.components[*].licenses[*].license.id" ],
56+
"expressions": ["$.components[*].licenses[*].license.id"],
5757
"timestamp": "2025-05-01T14:05:00Z",
5858
"attributedTo": "scan-tool-1",
5959
"process": "task-license-scan",
@@ -79,11 +79,11 @@
7979
{
8080
"bom-ref": "task-license-scan",
8181
"uid": "6d75f8d6-a008-41cf-8b65-c4129fc249f9",
82-
"taskTypes": [ "scan" ],
82+
"taskTypes": ["scan"],
8383
"description": "License scan of the source files using OpenSourceScanner v2.1"
8484
}
8585
],
86-
"taskTypes": [ "scan" ]
86+
"taskTypes": ["scan"]
8787
}
8888
]
8989
}

tools/src/test/resources/1.7/valid-component-ref-1.7.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"bom-ref": "123",
1111
"name": "acme-library",
1212
"version": "1.0.0",
13-
"components" : [
13+
"components": [
1414
{
1515
"type": "library",
1616
"bom-ref": "456",

tools/src/test/resources/1.7/valid-cryptography-certificate-advanced-1.7.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@
185185
"executionEnvironment": "software-plain-ram",
186186
"implementationPlatform": "x86_64",
187187
"padding": "pkcs1v15",
188-
"cryptoFunctions": ["sign", "verify"]
188+
"cryptoFunctions": [
189+
"sign",
190+
"verify"
191+
]
189192
},
190193
"oid": "1.2.840.113549.1.1.11"
191194
}
@@ -202,7 +205,10 @@
202205
"executionEnvironment": "software-plain-ram",
203206
"implementationPlatform": "x86_64",
204207
"certificationLevel": ["fips140-3-l1"],
205-
"cryptoFunctions": ["sign", "verify"]
208+
"cryptoFunctions": [
209+
"sign",
210+
"verify"
211+
]
206212
},
207213
"oid": "1.2.840.10045.4.3.2"
208214
}

tools/src/test/resources/1.7/valid-cryptography-full-1.7.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
"ellipticCurve": "brainpool/brainpoolP160r1",
1919
"executionEnvironment": "software-plain-ram",
2020
"implementationPlatform": "x86_64",
21-
"certificationLevel": [ "fips140-3-l4" ],
21+
"certificationLevel": ["fips140-3-l4"],
2222
"mode": "gcm",
2323
"padding": "pkcs5",
24-
"cryptoFunctions": ["keygen", "keyderive"],
24+
"cryptoFunctions": [
25+
"keygen",
26+
"keyderive"
27+
],
2528
"classicalSecurityLevel": 96,
2629
"nistQuantumSecurityLevel": 0
2730
},
@@ -125,7 +128,6 @@
125128
"customExtensionName": "someCustomExtension",
126129
"customExtensionValue": "Custom value for this extension"
127130
}
128-
129131
],
130132
"relatedCryptographicAssets": [
131133
{

tools/src/test/resources/1.7/valid-cryptography-full-deprecated-1.7.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@
1717
"curve": "brainpoolP160r1",
1818
"executionEnvironment": "software-plain-ram",
1919
"implementationPlatform": "x86_64",
20-
"certificationLevel": [ "fips140-1-l4" ],
20+
"certificationLevel": ["fips140-1-l4"],
2121
"mode": "gcm",
2222
"padding": "pkcs5",
23-
"cryptoFunctions": ["keygen", "encrypt", "decrypt", "tag"],
23+
"cryptoFunctions": [
24+
"keygen",
25+
"encrypt",
26+
"decrypt",
27+
"tag"
28+
],
2429
"classicalSecurityLevel": 128,
2530
"nistQuantumSecurityLevel": 1
2631
},

tools/src/test/resources/1.7/valid-cryptography-implementation-1.7.json

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525
"mode": "gcm",
2626
"executionEnvironment": "software-plain-ram",
2727
"implementationPlatform": "x86_64",
28-
"certificationLevel": [ "none" ],
29-
"cryptoFunctions": [ "keygen", "encrypt", "decrypt", "tag" ],
28+
"certificationLevel": ["none"],
29+
"cryptoFunctions": [
30+
"keygen",
31+
"encrypt",
32+
"decrypt",
33+
"tag"
34+
],
3035
"classicalSecurityLevel": 128,
3136
"nistQuantumSecurityLevel": 1
3237
},
@@ -44,8 +49,11 @@
4449
"parameterSetIdentifier": "512",
4550
"executionEnvironment": "software-plain-ram",
4651
"implementationPlatform": "x86_64",
47-
"certificationLevel": [ "none" ],
48-
"cryptoFunctions": [ "sign", "verify" ],
52+
"certificationLevel": ["none"],
53+
"cryptoFunctions": [
54+
"sign",
55+
"verify"
56+
],
4957
"nistQuantumSecurityLevel": 0
5058
},
5159
"oid": "1.2.840.113549.1.1.13"
@@ -63,8 +71,11 @@
6371
"primitive": "key-agree",
6472
"executionEnvironment": "software-plain-ram",
6573
"implementationPlatform": "x86_64",
66-
"certificationLevel": [ "none" ],
67-
"cryptoFunctions": [ "keygen", "keyderive" ],
74+
"certificationLevel": ["none"],
75+
"cryptoFunctions": [
76+
"keygen",
77+
"keyderive"
78+
],
6879
"nistQuantumSecurityLevel": 0
6980
},
7081
"oid": "1.3.132.0.35"
@@ -81,8 +92,11 @@
8192
"primitive": "kem",
8293
"executionEnvironment": "software-plain-ram",
8394
"implementationPlatform": "x86_64",
84-
"certificationLevel": [ "none" ],
85-
"cryptoFunctions": [ "keygen", "keyderive" ],
95+
"certificationLevel": ["none"],
96+
"cryptoFunctions": [
97+
"keygen",
98+
"keyderive"
99+
],
86100
"nistQuantumSecurityLevel": 5
87101
},
88102
"oid": "2.16.840.1.101.3.4.1.48"
@@ -98,18 +112,24 @@
98112
"primitive": "combiner",
99113
"executionEnvironment": "software-plain-ram",
100114
"implementationPlatform": "x86_64",
101-
"certificationLevel": [ "none" ],
102-
"cryptoFunctions": [ "keygen", "keyderive" ],
115+
"certificationLevel": ["none"],
116+
"cryptoFunctions": [
117+
"keygen",
118+
"keyderive"
119+
],
103120
"nistQuantumSecurityLevel": 0
104121
},
105122
"oid": "1.3.101.110"
106-
}
123+
}
107124
}
108125
],
109126
"dependencies": [
110127
{
111128
"ref": "draftietftlshybriddesign13",
112-
"dependsOn": ["mlkem1024", "ecdhsecp521r1"]
129+
"dependsOn": [
130+
"mlkem1024",
131+
"ecdhsecp521r1"
132+
]
113133
}
114134
]
115135
}

0 commit comments

Comments
 (0)