Skip to content

Commit aec5efa

Browse files
author
Cloud User
committed
resyncing specs 04-13-2026
1 parent 08b806f commit aec5efa

10 files changed

Lines changed: 2040 additions & 0 deletions

test/change_streams/unified/change-streams-disambiguatedPaths.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,91 @@
4242
}
4343
],
4444
"tests": [
45+
{
46+
"description": "disambiguatedPaths is not present when showExpandedEvents is false/unset",
47+
"runOnRequirements": [
48+
{
49+
"minServerVersion": "6.1.0",
50+
"maxServerVersion": "8.1.99",
51+
"topologies": [
52+
"replicaset",
53+
"load-balanced",
54+
"sharded"
55+
],
56+
"serverless": "forbid"
57+
},
58+
{
59+
"minServerVersion": "8.2.1",
60+
"topologies": [
61+
"replicaset",
62+
"load-balanced",
63+
"sharded"
64+
],
65+
"serverless": "forbid"
66+
}
67+
],
68+
"operations": [
69+
{
70+
"name": "insertOne",
71+
"object": "collection0",
72+
"arguments": {
73+
"document": {
74+
"_id": 1,
75+
"a": {
76+
"1": 1
77+
}
78+
}
79+
}
80+
},
81+
{
82+
"name": "createChangeStream",
83+
"object": "collection0",
84+
"arguments": {
85+
"pipeline": []
86+
},
87+
"saveResultAsEntity": "changeStream0"
88+
},
89+
{
90+
"name": "updateOne",
91+
"object": "collection0",
92+
"arguments": {
93+
"filter": {
94+
"_id": 1
95+
},
96+
"update": {
97+
"$set": {
98+
"a.1": 2
99+
}
100+
}
101+
}
102+
},
103+
{
104+
"name": "iterateUntilDocumentOrError",
105+
"object": "changeStream0",
106+
"expectResult": {
107+
"operationType": "update",
108+
"ns": {
109+
"db": "database0",
110+
"coll": "collection0"
111+
},
112+
"updateDescription": {
113+
"updatedFields": {
114+
"$$exists": true
115+
},
116+
"removedFields": {
117+
"$$exists": true
118+
},
119+
"truncatedArrays": {
120+
"$$exists": true
121+
},
122+
"disambiguatedPaths": {
123+
"$$exists": false
124+
}
125+
}
126+
}
127+
}
128+
]
129+
},
45130
{
46131
"description": "disambiguatedPaths is present on updateDescription when an ambiguous path is present",
47132
"operations": [
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
{
2+
"description": "accessToken-azure",
3+
"schemaVersion": "1.28",
4+
"runOnRequirements": [
5+
{
6+
"minServerVersion": "4.1.10",
7+
"csfle": {
8+
"minLibmongocryptVersion": "1.6.0"
9+
}
10+
}
11+
],
12+
"createEntities": [
13+
{
14+
"client": {
15+
"id": "client",
16+
"autoEncryptOpts": {
17+
"keyVaultNamespace": "keyvault.datakeys",
18+
"kmsProviders": {
19+
"azure": {
20+
"accessToken": {
21+
"$$placeholder": 1
22+
}
23+
}
24+
}
25+
}
26+
}
27+
},
28+
{
29+
"database": {
30+
"id": "db",
31+
"client": "client",
32+
"databaseName": "db"
33+
}
34+
},
35+
{
36+
"collection": {
37+
"id": "coll",
38+
"database": "db",
39+
"collectionName": "coll"
40+
}
41+
},
42+
{
43+
"clientEncryption": {
44+
"id": "clientEncryption",
45+
"clientEncryptionOpts": {
46+
"keyVaultClient": "client",
47+
"keyVaultNamespace": "keyvault.datakeys",
48+
"kmsProviders": {
49+
"azure": {
50+
"accessToken": {
51+
"$$placeholder": 1
52+
}
53+
}
54+
}
55+
}
56+
}
57+
}
58+
],
59+
"initialData": [
60+
{
61+
"databaseName": "db",
62+
"collectionName": "coll",
63+
"documents": [],
64+
"createOptions": {
65+
"validator": {
66+
"$jsonSchema": {
67+
"properties": {
68+
"secret": {
69+
"encrypt": {
70+
"keyId": [
71+
{
72+
"$binary": {
73+
"base64": "AZURE+AAAAAAAAAAAAAAAA==",
74+
"subType": "04"
75+
}
76+
}
77+
],
78+
"bsonType": "string",
79+
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
80+
}
81+
}
82+
},
83+
"bsonType": "object"
84+
}
85+
}
86+
}
87+
},
88+
{
89+
"databaseName": "keyvault",
90+
"collectionName": "datakeys",
91+
"documents": [
92+
{
93+
"_id": {
94+
"$binary": {
95+
"base64": "AZURE+AAAAAAAAAAAAAAAA==",
96+
"subType": "04"
97+
}
98+
},
99+
"keyAltNames": [
100+
"my-key"
101+
],
102+
"keyMaterial": {
103+
"$binary": {
104+
"base64": "n+HWZ0ZSVOYA3cvQgP7inN4JSXfOH85IngmeQxRpQHjCCcqT3IFqEWNlrsVHiz3AELimHhX4HKqOLWMUeSIT6emUDDoQX9BAv8DR1+E1w4nGs/NyEneac78EYFkK3JysrFDOgl2ypCCTKAypkn9CkAx1if4cfgQE93LW4kczcyHdGiH36CIxrCDGv1UzAvERN5Qa47DVwsM6a+hWsF2AAAJVnF0wYLLJU07TuRHdMrrphPWXZsFgyV+lRqJ7DDpReKNO8nMPLV/mHqHBHGPGQiRdb9NoJo8CvokGz4+KE8oLwzKf6V24dtwZmRkrsDV4iOhvROAzz+Euo1ypSkL3mw==",
105+
"subType": "00"
106+
}
107+
},
108+
"creationDate": {
109+
"$date": {
110+
"$numberLong": "1552949630483"
111+
}
112+
},
113+
"updateDate": {
114+
"$date": {
115+
"$numberLong": "1552949630483"
116+
}
117+
},
118+
"status": {
119+
"$numberInt": "0"
120+
},
121+
"masterKey": {
122+
"provider": "azure",
123+
"keyVaultEndpoint": "key-vault-csfle.vault.azure.net",
124+
"keyName": "key-name-csfle"
125+
}
126+
}
127+
]
128+
}
129+
],
130+
"tests": [
131+
{
132+
"description": "Auto encrypt using access token Azure credentials",
133+
"operations": [
134+
{
135+
"name": "insertOne",
136+
"arguments": {
137+
"document": {
138+
"_id": 1,
139+
"secret": "string0"
140+
}
141+
},
142+
"object": "coll"
143+
}
144+
],
145+
"outcome": [
146+
{
147+
"documents": [
148+
{
149+
"_id": 1,
150+
"secret": {
151+
"$binary": {
152+
"base64": "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ==",
153+
"subType": "06"
154+
}
155+
}
156+
}
157+
],
158+
"collectionName": "coll",
159+
"databaseName": "db"
160+
}
161+
]
162+
},
163+
{
164+
"description": "Explicit encrypt using access token Azure credentials",
165+
"operations": [
166+
{
167+
"name": "encrypt",
168+
"object": "clientEncryption",
169+
"arguments": {
170+
"value": "string0",
171+
"opts": {
172+
"keyAltName": "my-key",
173+
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
174+
}
175+
},
176+
"expectResult": {
177+
"$binary": {
178+
"base64": "AQGVERPgAAAAAAAAAAAAAAAC5DbBSwPwfSlBrDtRuglvNvCXD1KzDuCKY2P+4bRFtHDjpTOE2XuytPAUaAbXf1orsPq59PVZmsbTZbt2CB8qaQ==",
179+
"subType": "06"
180+
}
181+
}
182+
}
183+
]
184+
}
185+
]
186+
}

0 commit comments

Comments
 (0)