Skip to content

Commit 530b87d

Browse files
committed
Copy spec test changes from libmongoc
1 parent 4ce16b1 commit 530b87d

24 files changed

+432
-0
lines changed

tests/SpecTests/client-side-encryption/tests/aggregate.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@
150150
"command_name": "listCollections"
151151
}
152152
},
153+
{
154+
"command_started_event": {
155+
"command": {
156+
"listCollections": 1,
157+
"filter": {
158+
"name": "datakeys"
159+
},
160+
"$db": "keyvault"
161+
},
162+
"command_name": "listCollections"
163+
}
164+
},
153165
{
154166
"command_started_event": {
155167
"command": {
@@ -261,6 +273,18 @@
261273
"command_name": "aggregate"
262274
}
263275
},
276+
{
277+
"command_started_event": {
278+
"command": {
279+
"listCollections": 1,
280+
"filter": {
281+
"name": "datakeys"
282+
},
283+
"$db": "keyvault"
284+
},
285+
"command_name": "listCollections"
286+
}
287+
},
264288
{
265289
"command_started_event": {
266290
"command": {

tests/SpecTests/client-side-encryption/tests/azureKMS.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,18 @@
139139
"command_name": "listCollections"
140140
}
141141
},
142+
{
143+
"command_started_event": {
144+
"command": {
145+
"listCollections": 1,
146+
"filter": {
147+
"name": "datakeys"
148+
},
149+
"$db": "keyvault"
150+
},
151+
"command_name": "listCollections"
152+
}
153+
},
142154
{
143155
"command_started_event": {
144156
"command": {

tests/SpecTests/client-side-encryption/tests/basic.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@
144144
"command_name": "listCollections"
145145
}
146146
},
147+
{
148+
"command_started_event": {
149+
"command": {
150+
"listCollections": 1,
151+
"filter": {
152+
"name": "datakeys"
153+
},
154+
"$db": "keyvault"
155+
},
156+
"command_name": "listCollections"
157+
}
158+
},
147159
{
148160
"command_started_event": {
149161
"command": {
@@ -271,6 +283,18 @@
271283
"command_name": "listCollections"
272284
}
273285
},
286+
{
287+
"command_started_event": {
288+
"command": {
289+
"listCollections": 1,
290+
"filter": {
291+
"name": "datakeys"
292+
},
293+
"$db": "keyvault"
294+
},
295+
"command_name": "listCollections"
296+
}
297+
},
274298
{
275299
"command_started_event": {
276300
"command": {

tests/SpecTests/client-side-encryption/tests/bulk.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,18 @@
178178
"command_name": "listCollections"
179179
}
180180
},
181+
{
182+
"command_started_event": {
183+
"command": {
184+
"listCollections": 1,
185+
"filter": {
186+
"name": "datakeys"
187+
},
188+
"$db": "keyvault"
189+
},
190+
"command_name": "listCollections"
191+
}
192+
},
181193
{
182194
"command_started_event": {
183195
"command": {

tests/SpecTests/client-side-encryption/tests/count.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@
149149
"command_name": "listCollections"
150150
}
151151
},
152+
{
153+
"command_started_event": {
154+
"command": {
155+
"listCollections": 1,
156+
"filter": {
157+
"name": "datakeys"
158+
},
159+
"$db": "keyvault"
160+
},
161+
"command_name": "listCollections"
162+
}
163+
},
152164
{
153165
"command_started_event": {
154166
"command": {

tests/SpecTests/client-side-encryption/tests/countDocuments.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,18 @@
150150
"command_name": "listCollections"
151151
}
152152
},
153+
{
154+
"command_started_event": {
155+
"command": {
156+
"listCollections": 1,
157+
"filter": {
158+
"name": "datakeys"
159+
},
160+
"$db": "keyvault"
161+
},
162+
"command_name": "listCollections"
163+
}
164+
},
153165
{
154166
"command_started_event": {
155167
"command": {

tests/SpecTests/client-side-encryption/tests/delete.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,18 @@
151151
"command_name": "listCollections"
152152
}
153153
},
154+
{
155+
"command_started_event": {
156+
"command": {
157+
"listCollections": 1,
158+
"filter": {
159+
"name": "datakeys"
160+
},
161+
"$db": "keyvault"
162+
},
163+
"command_name": "listCollections"
164+
}
165+
},
154166
{
155167
"command_started_event": {
156168
"command": {
@@ -264,6 +276,18 @@
264276
"command_name": "listCollections"
265277
}
266278
},
279+
{
280+
"command_started_event": {
281+
"command": {
282+
"listCollections": 1,
283+
"filter": {
284+
"name": "datakeys"
285+
},
286+
"$db": "keyvault"
287+
},
288+
"command_name": "listCollections"
289+
}
290+
},
267291
{
268292
"command_started_event": {
269293
"command": {

tests/SpecTests/client-side-encryption/tests/distinct.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@
161161
"command_name": "listCollections"
162162
}
163163
},
164+
{
165+
"command_started_event": {
166+
"command": {
167+
"listCollections": 1,
168+
"filter": {
169+
"name": "datakeys"
170+
},
171+
"$db": "keyvault"
172+
},
173+
"command_name": "listCollections"
174+
}
175+
},
164176
{
165177
"command_started_event": {
166178
"command": {

tests/SpecTests/client-side-encryption/tests/explain.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,18 @@
155155
"command_name": "listCollections"
156156
}
157157
},
158+
{
159+
"command_started_event": {
160+
"command": {
161+
"listCollections": 1,
162+
"filter": {
163+
"name": "datakeys"
164+
},
165+
"$db": "keyvault"
166+
},
167+
"command_name": "listCollections"
168+
}
169+
},
158170
{
159171
"command_started_event": {
160172
"command": {

tests/SpecTests/client-side-encryption/tests/find.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@
160160
"command_name": "listCollections"
161161
}
162162
},
163+
{
164+
"command_started_event": {
165+
"command": {
166+
"listCollections": 1,
167+
"filter": {
168+
"name": "datakeys"
169+
},
170+
"$db": "keyvault"
171+
},
172+
"command_name": "listCollections"
173+
}
174+
},
163175
{
164176
"command_started_event": {
165177
"command": {
@@ -290,6 +302,18 @@
290302
"command_name": "listCollections"
291303
}
292304
},
305+
{
306+
"command_started_event": {
307+
"command": {
308+
"listCollections": 1,
309+
"filter": {
310+
"name": "datakeys"
311+
},
312+
"$db": "keyvault"
313+
},
314+
"command_name": "listCollections"
315+
}
316+
},
293317
{
294318
"command_started_event": {
295319
"command": {

tests/SpecTests/client-side-encryption/tests/findOneAndDelete.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,18 @@
148148
"command_name": "listCollections"
149149
}
150150
},
151+
{
152+
"command_started_event": {
153+
"command": {
154+
"listCollections": 1,
155+
"filter": {
156+
"name": "datakeys"
157+
},
158+
"$db": "keyvault"
159+
},
160+
"command_name": "listCollections"
161+
}
162+
},
151163
{
152164
"command_started_event": {
153165
"command": {

tests/SpecTests/client-side-encryption/tests/findOneAndReplace.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@
147147
"command_name": "listCollections"
148148
}
149149
},
150+
{
151+
"command_started_event": {
152+
"command": {
153+
"listCollections": 1,
154+
"filter": {
155+
"name": "datakeys"
156+
},
157+
"$db": "keyvault"
158+
},
159+
"command_name": "listCollections"
160+
}
161+
},
150162
{
151163
"command_started_event": {
152164
"command": {

tests/SpecTests/client-side-encryption/tests/findOneAndUpdate.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,18 @@
149149
"command_name": "listCollections"
150150
}
151151
},
152+
{
153+
"command_started_event": {
154+
"command": {
155+
"listCollections": 1,
156+
"filter": {
157+
"name": "datakeys"
158+
},
159+
"$db": "keyvault"
160+
},
161+
"command_name": "listCollections"
162+
}
163+
},
152164
{
153165
"command_started_event": {
154166
"command": {

tests/SpecTests/client-side-encryption/tests/gcpKMS.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@
141141
"command_name": "listCollections"
142142
}
143143
},
144+
{
145+
"command_started_event": {
146+
"command": {
147+
"listCollections": 1,
148+
"filter": {
149+
"name": "datakeys"
150+
},
151+
"$db": "keyvault"
152+
},
153+
"command_name": "listCollections"
154+
}
155+
},
144156
{
145157
"command_started_event": {
146158
"command": {

tests/SpecTests/client-side-encryption/tests/getMore.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,18 @@
179179
"command_name": "find"
180180
}
181181
},
182+
{
183+
"command_started_event": {
184+
"command": {
185+
"listCollections": 1,
186+
"filter": {
187+
"name": "datakeys"
188+
},
189+
"$db": "keyvault"
190+
},
191+
"command_name": "listCollections"
192+
}
193+
},
182194
{
183195
"command_started_event": {
184196
"command": {

tests/SpecTests/client-side-encryption/tests/insert.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@
131131
"command_name": "listCollections"
132132
}
133133
},
134+
{
135+
"command_started_event": {
136+
"command": {
137+
"listCollections": 1,
138+
"filter": {
139+
"name": "datakeys"
140+
},
141+
"$db": "keyvault"
142+
},
143+
"command_name": "listCollections"
144+
}
145+
},
134146
{
135147
"command_started_event": {
136148
"command": {
@@ -246,6 +258,18 @@
246258
"command_name": "listCollections"
247259
}
248260
},
261+
{
262+
"command_started_event": {
263+
"command": {
264+
"listCollections": 1,
265+
"filter": {
266+
"name": "datakeys"
267+
},
268+
"$db": "keyvault"
269+
},
270+
"command_name": "listCollections"
271+
}
272+
},
249273
{
250274
"command_started_event": {
251275
"command": {

0 commit comments

Comments
 (0)