Skip to content

Commit e91f0ec

Browse files
authored
DRIVERS-2017 Add clientEncryption entity to unified test format (#1188)
* Add schema-1.8.json * Add schema definition for clientEncryption entity * Add unified test format tests for clientEncryption entity * Add unified test format spec wording for clientEncryption entity * Introduce "$$placeholder" for placeholder values
1 parent 223df1f commit e91f0ec

File tree

67 files changed

+2210
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2210
-3
lines changed

source/unified-test-format/schema-1.8.json

Lines changed: 554 additions & 0 deletions
Large diffs are not rendered by default.

source/unified-test-format/tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCHEMA=../schema-1.7.json
1+
SCHEMA=../schema-1.8.json
22

33
.PHONY: all invalid valid-fail valid-pass versioned-api load-balancers gridfs transactions crud collection-management sessions command-monitoring HAS_AJV
44

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"description": "clientEncryptionOpts-additionalProperties",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"aws": {}
18+
},
19+
"invalid": {}
20+
}
21+
}
22+
}
23+
],
24+
"tests": [
25+
{
26+
"description": "",
27+
"operations": []
28+
}
29+
]
30+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
description: clientEncryptionOpts-additionalProperties
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
aws: {}
15+
invalid: {}
16+
17+
tests:
18+
- description: ""
19+
operations: []
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"description": "clientEncryptionOpts-keyVaultClient-required",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"clientEncryption": {
7+
"id": "clientEncryption0",
8+
"clientEncryptionOpts": {
9+
"keyVaultNamespace": "keyvault.datakeys",
10+
"kmsProviders": {
11+
"aws": {}
12+
}
13+
}
14+
}
15+
}
16+
],
17+
"tests": [
18+
{
19+
"description": "",
20+
"operations": []
21+
}
22+
]
23+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
description: clientEncryptionOpts-keyVaultClient-required
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- clientEncryption:
7+
id: &clientEncryption0 clientEncryption0
8+
clientEncryptionOpts:
9+
keyVaultNamespace: keyvault.datakeys
10+
kmsProviders:
11+
aws: {}
12+
13+
tests:
14+
- description: ""
15+
operations: []
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "clientEncryptionOpts-keyVaultClient-type",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": 0,
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"aws": {}
18+
}
19+
}
20+
}
21+
}
22+
],
23+
"tests": [
24+
{
25+
"description": "",
26+
"operations": []
27+
}
28+
]
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: clientEncryptionOpts-keyVaultClient-type
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: 0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
aws: {}
15+
16+
tests:
17+
- description: ""
18+
operations: []
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"description": "clientEncryptionOpts-keyVaultNamespace-required",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"kmsProviders": {
16+
"aws": {}
17+
}
18+
}
19+
}
20+
}
21+
],
22+
"tests": [
23+
{
24+
"description": "",
25+
"operations": []
26+
}
27+
]
28+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
description: clientEncryptionOpts-keyVaultNamespace-required
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
kmsProviders:
13+
aws: {}
14+
15+
tests:
16+
- description: ""
17+
operations: []
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "clientEncryptionOpts-keyVaultNamespace-type",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": 0,
16+
"kmsProviders": {
17+
"aws": {}
18+
}
19+
}
20+
}
21+
}
22+
],
23+
"tests": [
24+
{
25+
"description": "",
26+
"operations": []
27+
}
28+
]
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: clientEncryptionOpts-keyVaultNamespace-type
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: 0
13+
kmsProviders:
14+
aws: {}
15+
16+
tests:
17+
- description: ""
18+
operations: []
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "clientEncryptionOpts-kmsProviders-additionalProperties",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"invalid": {}
18+
}
19+
}
20+
}
21+
}
22+
],
23+
"tests": [
24+
{
25+
"description": "",
26+
"operations": []
27+
}
28+
]
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: clientEncryptionOpts-kmsProviders-additionalProperties
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
invalid: {}
15+
16+
tests:
17+
- description: ""
18+
operations: []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"description": "clientEncryptionOpts-kmsProviders-aws-additionalProperties",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"aws": {
18+
"invalid": {}
19+
}
20+
}
21+
}
22+
}
23+
}
24+
],
25+
"tests": [
26+
{
27+
"description": "",
28+
"operations": []
29+
}
30+
]
31+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: clientEncryptionOpts-kmsProviders-aws-additionalProperties
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
aws: { invalid: {} }
15+
16+
tests:
17+
- description: ""
18+
operations: []
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "clientEncryptionOpts-kmsProviders-aws-type",
3+
"schemaVersion": "1.8",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
},
10+
{
11+
"clientEncryption": {
12+
"id": "clientEncryption0",
13+
"clientEncryptionOpts": {
14+
"keyVaultClient": "client0",
15+
"keyVaultNamespace": "keyvault.datakeys",
16+
"kmsProviders": {
17+
"aws": 0
18+
}
19+
}
20+
}
21+
}
22+
],
23+
"tests": [
24+
{
25+
"description": "",
26+
"operations": []
27+
}
28+
]
29+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
description: clientEncryptionOpts-kmsProviders-aws-type
2+
3+
schemaVersion: "1.8"
4+
5+
createEntities:
6+
- client:
7+
id: &client0 client0
8+
- clientEncryption:
9+
id: &clientEncryption0 clientEncryption0
10+
clientEncryptionOpts:
11+
keyVaultClient: *client0
12+
keyVaultNamespace: keyvault.datakeys
13+
kmsProviders:
14+
aws: 0
15+
16+
tests:
17+
- description: ""
18+
operations: []

0 commit comments

Comments
 (0)