Skip to content

Commit afddfe9

Browse files
NathanQingyangXukatcharov
authored andcommittedOct 18, 2024
Add server 8.0+ tests for aggregation with $out to not pre-create output collection (#1534)
JAVA-5481
1 parent 8a4ce4f commit afddfe9

File tree

2 files changed

+0
-120
lines changed

2 files changed

+0
-120
lines changed
 

‎driver-core/src/test/resources/unified-test-format/crud/aggregate-write-readPreference.json

-69
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@
7878
"x": 33
7979
}
8080
]
81-
},
82-
{
83-
"collectionName": "coll1",
84-
"databaseName": "db0",
85-
"documents": []
8681
}
8782
],
8883
"tests": [
@@ -159,22 +154,6 @@
159154
}
160155
]
161156
}
162-
],
163-
"outcome": [
164-
{
165-
"collectionName": "coll1",
166-
"databaseName": "db0",
167-
"documents": [
168-
{
169-
"_id": 2,
170-
"x": 22
171-
},
172-
{
173-
"_id": 3,
174-
"x": 33
175-
}
176-
]
177-
}
178157
]
179158
},
180159
{
@@ -250,22 +229,6 @@
250229
}
251230
]
252231
}
253-
],
254-
"outcome": [
255-
{
256-
"collectionName": "coll1",
257-
"databaseName": "db0",
258-
"documents": [
259-
{
260-
"_id": 2,
261-
"x": 22
262-
},
263-
{
264-
"_id": 3,
265-
"x": 33
266-
}
267-
]
268-
}
269232
]
270233
},
271234
{
@@ -344,22 +307,6 @@
344307
}
345308
]
346309
}
347-
],
348-
"outcome": [
349-
{
350-
"collectionName": "coll1",
351-
"databaseName": "db0",
352-
"documents": [
353-
{
354-
"_id": 2,
355-
"x": 22
356-
},
357-
{
358-
"_id": 3,
359-
"x": 33
360-
}
361-
]
362-
}
363310
]
364311
},
365312
{
@@ -438,22 +385,6 @@
438385
}
439386
]
440387
}
441-
],
442-
"outcome": [
443-
{
444-
"collectionName": "coll1",
445-
"databaseName": "db0",
446-
"documents": [
447-
{
448-
"_id": 2,
449-
"x": 22
450-
},
451-
{
452-
"_id": 3,
453-
"x": 33
454-
}
455-
]
456-
}
457388
]
458389
}
459390
]

‎driver-core/src/test/resources/unified-test-format/crud/db-aggregate-write-readPreference.json

-51
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@
5252
}
5353
}
5454
],
55-
"initialData": [
56-
{
57-
"collectionName": "coll0",
58-
"databaseName": "db0",
59-
"documents": []
60-
}
61-
],
6255
"tests": [
6356
{
6457
"description": "Database-level aggregate with $out includes read preference for 5.0+ server",
@@ -141,17 +134,6 @@
141134
}
142135
]
143136
}
144-
],
145-
"outcome": [
146-
{
147-
"collectionName": "coll0",
148-
"databaseName": "db0",
149-
"documents": [
150-
{
151-
"_id": 1
152-
}
153-
]
154-
}
155137
]
156138
},
157139
{
@@ -235,17 +217,6 @@
235217
}
236218
]
237219
}
238-
],
239-
"outcome": [
240-
{
241-
"collectionName": "coll0",
242-
"databaseName": "db0",
243-
"documents": [
244-
{
245-
"_id": 1
246-
}
247-
]
248-
}
249220
]
250221
},
251222
{
@@ -332,17 +303,6 @@
332303
}
333304
]
334305
}
335-
],
336-
"outcome": [
337-
{
338-
"collectionName": "coll0",
339-
"databaseName": "db0",
340-
"documents": [
341-
{
342-
"_id": 1
343-
}
344-
]
345-
}
346306
]
347307
},
348308
{
@@ -429,17 +389,6 @@
429389
}
430390
]
431391
}
432-
],
433-
"outcome": [
434-
{
435-
"collectionName": "coll0",
436-
"databaseName": "db0",
437-
"documents": [
438-
{
439-
"_id": 1
440-
}
441-
]
442-
}
443392
]
444393
}
445394
]

0 commit comments

Comments
 (0)
Failed to load comments.