Skip to content

Commit 4ff6db8

Browse files
committed
tests: enum CryptoAssetType
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent b29e49c commit 4ff6db8

4 files changed

Lines changed: 220 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"components": [
3+
{
4+
"bom-ref": "dummy-CAT:ALGORITHM",
5+
"cryptoProperties": {
6+
"assetType": "algorithm"
7+
},
8+
"name": "CryptoAssetType: ALGORITHM",
9+
"type": "cryptographic-asset"
10+
},
11+
{
12+
"bom-ref": "dummy-CAT:CERTIFICATE",
13+
"cryptoProperties": {
14+
"assetType": "certificate"
15+
},
16+
"name": "CryptoAssetType: CERTIFICATE",
17+
"type": "cryptographic-asset"
18+
},
19+
{
20+
"bom-ref": "dummy-CAT:PROTOCOL",
21+
"cryptoProperties": {
22+
"assetType": "protocol"
23+
},
24+
"name": "CryptoAssetType: PROTOCOL",
25+
"type": "cryptographic-asset"
26+
},
27+
{
28+
"bom-ref": "dummy-CAT:RELATED_CRYPTO_MATERIAL",
29+
"cryptoProperties": {
30+
"assetType": "related-crypto-material"
31+
},
32+
"name": "CryptoAssetType: RELATED_CRYPTO_MATERIAL",
33+
"type": "cryptographic-asset"
34+
}
35+
],
36+
"dependencies": [
37+
{
38+
"ref": "dummy-CAT:ALGORITHM"
39+
},
40+
{
41+
"ref": "dummy-CAT:CERTIFICATE"
42+
},
43+
{
44+
"ref": "dummy-CAT:PROTOCOL"
45+
},
46+
{
47+
"ref": "dummy-CAT:RELATED_CRYPTO_MATERIAL"
48+
}
49+
],
50+
"metadata": {
51+
"timestamp": "2023-01-07T13:44:32.312678+00:00"
52+
},
53+
"properties": [
54+
{
55+
"name": "key1",
56+
"value": "val1"
57+
},
58+
{
59+
"name": "key2",
60+
"value": "val2"
61+
}
62+
],
63+
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac",
64+
"version": 1,
65+
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
66+
"bomFormat": "CycloneDX",
67+
"specVersion": "1.6"
68+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" ?>
2+
<bom xmlns="http://cyclonedx.org/schema/bom/1.6" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1">
3+
<metadata>
4+
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp>
5+
</metadata>
6+
<components>
7+
<component type="cryptographic-asset" bom-ref="dummy-CAT:ALGORITHM">
8+
<name>CryptoAssetType: ALGORITHM</name>
9+
<cryptoProperties>
10+
<assetType>algorithm</assetType>
11+
</cryptoProperties>
12+
</component>
13+
<component type="cryptographic-asset" bom-ref="dummy-CAT:CERTIFICATE">
14+
<name>CryptoAssetType: CERTIFICATE</name>
15+
<cryptoProperties>
16+
<assetType>certificate</assetType>
17+
</cryptoProperties>
18+
</component>
19+
<component type="cryptographic-asset" bom-ref="dummy-CAT:PROTOCOL">
20+
<name>CryptoAssetType: PROTOCOL</name>
21+
<cryptoProperties>
22+
<assetType>protocol</assetType>
23+
</cryptoProperties>
24+
</component>
25+
<component type="cryptographic-asset" bom-ref="dummy-CAT:RELATED_CRYPTO_MATERIAL">
26+
<name>CryptoAssetType: RELATED_CRYPTO_MATERIAL</name>
27+
<cryptoProperties>
28+
<assetType>related-crypto-material</assetType>
29+
</cryptoProperties>
30+
</component>
31+
</components>
32+
<dependencies>
33+
<dependency ref="dummy-CAT:ALGORITHM"/>
34+
<dependency ref="dummy-CAT:CERTIFICATE"/>
35+
<dependency ref="dummy-CAT:PROTOCOL"/>
36+
<dependency ref="dummy-CAT:RELATED_CRYPTO_MATERIAL"/>
37+
</dependencies>
38+
<properties>
39+
<property name="key1">val1</property>
40+
<property name="key2">val2</property>
41+
</properties>
42+
</bom>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"components": [
3+
{
4+
"bom-ref": "dummy-CAT:ALGORITHM",
5+
"cryptoProperties": {
6+
"assetType": "algorithm"
7+
},
8+
"name": "CryptoAssetType: ALGORITHM",
9+
"type": "cryptographic-asset"
10+
},
11+
{
12+
"bom-ref": "dummy-CAT:CERTIFICATE",
13+
"cryptoProperties": {
14+
"assetType": "certificate"
15+
},
16+
"name": "CryptoAssetType: CERTIFICATE",
17+
"type": "cryptographic-asset"
18+
},
19+
{
20+
"bom-ref": "dummy-CAT:PROTOCOL",
21+
"cryptoProperties": {
22+
"assetType": "protocol"
23+
},
24+
"name": "CryptoAssetType: PROTOCOL",
25+
"type": "cryptographic-asset"
26+
},
27+
{
28+
"bom-ref": "dummy-CAT:RELATED_CRYPTO_MATERIAL",
29+
"cryptoProperties": {
30+
"assetType": "related-crypto-material"
31+
},
32+
"name": "CryptoAssetType: RELATED_CRYPTO_MATERIAL",
33+
"type": "cryptographic-asset"
34+
}
35+
],
36+
"dependencies": [
37+
{
38+
"ref": "dummy-CAT:ALGORITHM"
39+
},
40+
{
41+
"ref": "dummy-CAT:CERTIFICATE"
42+
},
43+
{
44+
"ref": "dummy-CAT:PROTOCOL"
45+
},
46+
{
47+
"ref": "dummy-CAT:RELATED_CRYPTO_MATERIAL"
48+
}
49+
],
50+
"metadata": {
51+
"timestamp": "2023-01-07T13:44:32.312678+00:00"
52+
},
53+
"properties": [
54+
{
55+
"name": "key1",
56+
"value": "val1"
57+
},
58+
{
59+
"name": "key2",
60+
"value": "val2"
61+
}
62+
],
63+
"serialNumber": "urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac",
64+
"version": 1,
65+
"$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
66+
"bomFormat": "CycloneDX",
67+
"specVersion": "1.7"
68+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" ?>
2+
<bom xmlns="http://cyclonedx.org/schema/bom/1.7" serialNumber="urn:uuid:1441d33a-e0fc-45b5-af3b-61ee52a88bac" version="1">
3+
<metadata>
4+
<timestamp>2023-01-07T13:44:32.312678+00:00</timestamp>
5+
</metadata>
6+
<components>
7+
<component type="cryptographic-asset" bom-ref="dummy-CAT:ALGORITHM">
8+
<name>CryptoAssetType: ALGORITHM</name>
9+
<cryptoProperties>
10+
<assetType>algorithm</assetType>
11+
</cryptoProperties>
12+
</component>
13+
<component type="cryptographic-asset" bom-ref="dummy-CAT:CERTIFICATE">
14+
<name>CryptoAssetType: CERTIFICATE</name>
15+
<cryptoProperties>
16+
<assetType>certificate</assetType>
17+
</cryptoProperties>
18+
</component>
19+
<component type="cryptographic-asset" bom-ref="dummy-CAT:PROTOCOL">
20+
<name>CryptoAssetType: PROTOCOL</name>
21+
<cryptoProperties>
22+
<assetType>protocol</assetType>
23+
</cryptoProperties>
24+
</component>
25+
<component type="cryptographic-asset" bom-ref="dummy-CAT:RELATED_CRYPTO_MATERIAL">
26+
<name>CryptoAssetType: RELATED_CRYPTO_MATERIAL</name>
27+
<cryptoProperties>
28+
<assetType>related-crypto-material</assetType>
29+
</cryptoProperties>
30+
</component>
31+
</components>
32+
<dependencies>
33+
<dependency ref="dummy-CAT:ALGORITHM"/>
34+
<dependency ref="dummy-CAT:CERTIFICATE"/>
35+
<dependency ref="dummy-CAT:PROTOCOL"/>
36+
<dependency ref="dummy-CAT:RELATED_CRYPTO_MATERIAL"/>
37+
</dependencies>
38+
<properties>
39+
<property name="key1">val1</property>
40+
<property name="key2">val2</property>
41+
</properties>
42+
</bom>

0 commit comments

Comments
 (0)