Skip to content

Commit cb28f46

Browse files
authored
GODRIVER-2352 Add clientEncryption entity to unified test format (#920)
1 parent bb37ecd commit cb28f46

26 files changed

+932
-29
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"description": "clientEncryptionOpts-missing-kms-credentials",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"encryptedClient": {
12+
"id": "encryptedClient0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"aws": {
18+
"accessKeyId": "accessKeyId"
19+
},
20+
"azure": {
21+
"tenantId": "tenantId"
22+
},
23+
"gcp": {
24+
"email": "email"
25+
}
26+
}
27+
}
28+
}
29+
}
30+
],
31+
"tests": [
32+
{
33+
"description": "",
34+
"operations": []
35+
}
36+
]
37+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
description: clientEncryptionOpts-missing-kms-credentials
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- encryptedClient:
9+
id: &encryptedClient0 encryptedClient0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
aws: { accessKeyId: "accessKeyId" }
15+
azure: { tenantId: "tenantId" }
16+
gcp: { email: "email" }
17+
18+
tests:
19+
- description: ""
20+
operations: []
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"description": "clientEncryptionOpts-no-kms",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"encryptedClient": {
12+
"id": "encryptedClient0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {}
17+
}
18+
}
19+
}
20+
],
21+
"tests": [
22+
{
23+
"description": "",
24+
"operations": []
25+
}
26+
]
27+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
description: clientEncryptionOpts-no-kms
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- encryptedClient:
9+
id: &encryptedClient0 encryptedClient0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders: {}
14+
15+
tests:
16+
- description: ""
17+
operations: []
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"description": "kmsProviders-missing_aws_kms_credentials",
3+
"schemaVersion": "1.8",
4+
"runOnRequirements": [
5+
{
6+
"csfle": true
7+
}
8+
],
9+
"createEntities": [
10+
{
11+
"client": {
12+
"id": "client0"
13+
}
14+
},
15+
{
16+
"clientEncryption": {
17+
"id": "clientEncryption0",
18+
"clientEncryptionOpts": {
19+
"keyVaultClient": "client0",
20+
"keyVaultNamespace": "keyvault.datakeys",
21+
"kmsProviders": {
22+
"aws": {
23+
"accessKeyId": "accessKeyId"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
],
30+
"tests": [
31+
{
32+
"description": "",
33+
"operations": []
34+
}
35+
]
36+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Missing required KMS credentials should lead to clientEncryption initialization failure.
2+
description: kmsProviders-missing_aws_kms_credentials
3+
4+
schemaVersion: "1.8"
5+
6+
runOnRequirements:
7+
- csfle: true
8+
9+
createEntities:
10+
- client:
11+
id: &client0 client0
12+
- clientEncryption:
13+
id: &clientEncryption0 clientEncryption0
14+
clientEncryptionOpts:
15+
keyVaultClient: *client0
16+
keyVaultNamespace: keyvault.datakeys
17+
kmsProviders:
18+
aws: { accessKeyId: "accessKeyId" }
19+
20+
tests:
21+
- description: ""
22+
operations: []
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"description": "kmsProviders-missing_azure_kms_credentials",
3+
"schemaVersion": "1.8",
4+
"runOnRequirements": [
5+
{
6+
"csfle": true
7+
}
8+
],
9+
"createEntities": [
10+
{
11+
"client": {
12+
"id": "client0"
13+
}
14+
},
15+
{
16+
"clientEncryption": {
17+
"id": "clientEncryption0",
18+
"clientEncryptionOpts": {
19+
"keyVaultClient": "client0",
20+
"keyVaultNamespace": "keyvault.datakeys",
21+
"kmsProviders": {
22+
"azure": {
23+
"tenantId": "tenantId"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
],
30+
"tests": [
31+
{
32+
"description": "",
33+
"operations": []
34+
}
35+
]
36+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Missing required KMS credentials should lead to clientEncryption initialization failure.
2+
description: kmsProviders-missing_azure_kms_credentials
3+
4+
schemaVersion: "1.8"
5+
6+
runOnRequirements:
7+
- csfle: true
8+
9+
createEntities:
10+
- client:
11+
id: &client0 client0
12+
- clientEncryption:
13+
id: &clientEncryption0 clientEncryption0
14+
clientEncryptionOpts:
15+
keyVaultClient: *client0
16+
keyVaultNamespace: keyvault.datakeys
17+
kmsProviders:
18+
azure: { tenantId: "tenantId" }
19+
20+
tests:
21+
- description: ""
22+
operations: []
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"description": "kmsProviders-missing_gcp_kms_credentials",
3+
"schemaVersion": "1.8",
4+
"runOnRequirements": [
5+
{
6+
"csfle": true
7+
}
8+
],
9+
"createEntities": [
10+
{
11+
"client": {
12+
"id": "client0"
13+
}
14+
},
15+
{
16+
"clientEncryption": {
17+
"id": "clientEncryption0",
18+
"clientEncryptionOpts": {
19+
"keyVaultClient": "client0",
20+
"keyVaultNamespace": "keyvault.datakeys",
21+
"kmsProviders": {
22+
"gcp": {
23+
"email": "email"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
],
30+
"tests": [
31+
{
32+
"description": "",
33+
"operations": []
34+
}
35+
]
36+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Missing required KMS credentials should lead to clientEncryption initialization failure.
2+
description: kmsProviders-missing_gcp_kms_credentials
3+
4+
schemaVersion: "1.8"
5+
6+
runOnRequirements:
7+
- csfle: true
8+
9+
createEntities:
10+
- client:
11+
id: &client0 client0
12+
- clientEncryption:
13+
id: &clientEncryption0 clientEncryption0
14+
clientEncryptionOpts:
15+
keyVaultClient: *client0
16+
keyVaultNamespace: keyvault.datakeys
17+
kmsProviders:
18+
gcp: { email: "email" }
19+
20+
tests:
21+
- description: ""
22+
operations: []

0 commit comments

Comments
 (0)