Skip to content

Commit 5b12e67

Browse files
committed
tests
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent bfd9eb4 commit 5b12e67

6 files changed

+160
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
3+
"bomFormat": "CycloneDX",
4+
"specVersion": "1.7",
5+
"serialNumber": "urn:uuid:78a32681-a31f-4097-b151-7b771cc58157",
6+
"version": 1,
7+
"components": [
8+
{
9+
"type": "library",
10+
"publisher": "Acme Inc",
11+
"group": "com.acme",
12+
"name": "cryptographic-provider",
13+
"version": "2.2.0",
14+
"licenses": [
15+
{
16+
"bom-ref": "acme-license-1",
17+
"expression": "LicenseRef-AcmeCommercialLicense",
18+
"licensing": {
19+
"altIds": [
20+
"acme",
21+
"acme-license"
22+
],
23+
"licensor": {
24+
"organization": {
25+
"name": "Acme Inc",
26+
"contact": [
27+
{
28+
"name": "Acme Licensing Fulfillment",
29+
"email": "[email protected]"
30+
}
31+
]
32+
}
33+
},
34+
"licensee": {
35+
"organization": {
36+
"name": "Example Co."
37+
}
38+
},
39+
"purchaser": {
40+
"individual": {
41+
"name": "Samantha Wright",
42+
"email": "[email protected]",
43+
"phone": "800-555-1212"
44+
}
45+
},
46+
"purchaseOrder": "PO-12345",
47+
"licenseTypes": [
48+
"appliance"
49+
],
50+
"lastRenewal": "2022-04-13T20:20:39+00:00",
51+
"expiration": "2023-04-13T20:20:39+00:00"
52+
}
53+
}
54+
]
55+
}
56+
]
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# proto-file: schema/bom-1.7.proto
2+
# proto-message: Bom
3+
4+
spec_version: "1.7"
5+
version: 1
6+
serial_number: "urn:uuid:78a32681-a31f-4097-b151-7b771cc58157"
7+
components {
8+
type: CLASSIFICATION_LIBRARY
9+
publisher: "Acme Inc"
10+
group: "com.acme"
11+
name: "cryptographic-provider"
12+
version: "2.2.0"
13+
licenses {
14+
expression_detailed {
15+
bom_ref: "acme-license-1"
16+
expression: "LicenseRef-AcmeCommercialLicense"
17+
licensing {
18+
altIds: "acme"
19+
altIds: "acme-license"
20+
licensor {
21+
organization {
22+
name: "Acme Inc"
23+
contact {
24+
name: "Acme Licensing Fulfillment"
25+
26+
}
27+
}
28+
}
29+
licensee {
30+
organization {
31+
name: "Example Co."
32+
}
33+
}
34+
purchaser {
35+
individual {
36+
name: "Samantha Wright"
37+
38+
phone: "800-555-1212"
39+
}
40+
}
41+
purchaseOrder: "PO-12345"
42+
licenseTypes: LICENSING_TYPE_APPLIANCE
43+
lastRenewal {
44+
seconds: 1649881239
45+
nanos: 3
46+
}
47+
expiration {
48+
seconds: 1681417239
49+
nanos: 3
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0"?>
2+
<bom serialNumber="urn:uuid:78a32681-a31f-4097-b151-7b771cc58157" version="1" xmlns="http://cyclonedx.org/schema/bom/1.7">
3+
<components>
4+
<component type="library">
5+
<publisher>Acme Inc</publisher>
6+
<group>com.acme</group>
7+
<name>cryptographic-provider</name>
8+
<version>2.2.0</version>
9+
<licenses>
10+
<expression-detailed bom-ref="acme-license-1"
11+
expression="LicenseRef-AcmeCommercialLicense">
12+
<licensing>
13+
<altIds>
14+
<altId>acme</altId>
15+
<altId>acme-license</altId>
16+
</altIds>
17+
<licensor>
18+
<organization>
19+
<name>Acme Inc</name>
20+
<contact>
21+
<name>Acme Licensing Fulfillment</name>
22+
<email>[email protected]</email>
23+
</contact>
24+
</organization>
25+
</licensor>
26+
<licensee>
27+
<organization>
28+
<name>Example Co.</name>
29+
</organization>
30+
</licensee>
31+
<purchaser>
32+
<individual>
33+
<name>Samantha Wright</name>
34+
<email>[email protected]</email>
35+
<phone>800-555-1212</phone>
36+
</individual>
37+
</purchaser>
38+
<purchaseOrder>PO-12345</purchaseOrder>
39+
<licenseTypes>
40+
<licenseType>appliance</licenseType>
41+
</licenseTypes>
42+
<lastRenewal>2022-04-13T20:20:39+00:00</lastRenewal>
43+
<expiration>2023-04-13T20:20:39+00:00</expiration>
44+
</licensing>
45+
</expression-detailed>
46+
</licenses>
47+
</component>
48+
</components>
49+
</bom>

0 commit comments

Comments
 (0)