From 4dce4d1172ec32a68c640bf7f9267bb5da7dd0d5 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Tue, 17 Sep 2024 12:43:38 +0200 Subject: [PATCH] DRIVERS-2914: Don't create output collection in aggregate tests --- .../unified/aggregate-write-readPreference.json | 5 ----- .../tests/unified/aggregate-write-readPreference.yml | 12 ------------ .../unified/db-aggregate-write-readPreference.json | 7 ------- .../unified/db-aggregate-write-readPreference.yml | 5 ----- 4 files changed, 29 deletions(-) diff --git a/source/crud/tests/unified/aggregate-write-readPreference.json b/source/crud/tests/unified/aggregate-write-readPreference.json index bc887e83cb..206b380707 100644 --- a/source/crud/tests/unified/aggregate-write-readPreference.json +++ b/source/crud/tests/unified/aggregate-write-readPreference.json @@ -78,11 +78,6 @@ "x": 33 } ] - }, - { - "collectionName": "coll1", - "databaseName": "db0", - "documents": [] } ], "tests": [ diff --git a/source/crud/tests/unified/aggregate-write-readPreference.yml b/source/crud/tests/unified/aggregate-write-readPreference.yml index 86f5a4399c..16f1035752 100644 --- a/source/crud/tests/unified/aggregate-write-readPreference.yml +++ b/source/crud/tests/unified/aggregate-write-readPreference.yml @@ -51,9 +51,6 @@ initialData: - { _id: 1, x: 11 } - { _id: 2, x: 22 } - { _id: 3, x: 33 } - - collectionName: *collection1Name - databaseName: *database0Name - documents: [] tests: - description: "Aggregate with $out includes read preference for 5.0+ server" @@ -78,12 +75,6 @@ tests: $readPreference: *readPreference readConcern: *readConcern writeConcern: *writeConcern - outcome: &outcome - - collectionName: *collection1Name - databaseName: *database0Name - documents: - - { _id: 2, x: 22 } - - { _id: 3, x: 33 } - description: "Aggregate with $out omits read preference for pre-5.0 server" runOnRequirements: @@ -108,7 +99,6 @@ tests: $readPreference: { $$exists: false } readConcern: *readConcern writeConcern: *writeConcern - outcome: *outcome - description: "Aggregate with $merge includes read preference for 5.0+ server" runOnRequirements: @@ -131,7 +121,6 @@ tests: $readPreference: *readPreference readConcern: *readConcern writeConcern: *writeConcern - outcome: *outcome - description: "Aggregate with $merge omits read preference for pre-5.0 server" runOnRequirements: @@ -152,4 +141,3 @@ tests: $readPreference: { $$exists: false } readConcern: *readConcern writeConcern: *writeConcern - outcome: *outcome diff --git a/source/crud/tests/unified/db-aggregate-write-readPreference.json b/source/crud/tests/unified/db-aggregate-write-readPreference.json index 2a81282de8..df5b4f1352 100644 --- a/source/crud/tests/unified/db-aggregate-write-readPreference.json +++ b/source/crud/tests/unified/db-aggregate-write-readPreference.json @@ -52,13 +52,6 @@ } } ], - "initialData": [ - { - "collectionName": "coll0", - "databaseName": "db0", - "documents": [] - } - ], "tests": [ { "description": "Database-level aggregate with $out includes read preference for 5.0+ server", diff --git a/source/crud/tests/unified/db-aggregate-write-readPreference.yml b/source/crud/tests/unified/db-aggregate-write-readPreference.yml index 04a3b2169f..ca918ca7ff 100644 --- a/source/crud/tests/unified/db-aggregate-write-readPreference.yml +++ b/source/crud/tests/unified/db-aggregate-write-readPreference.yml @@ -43,11 +43,6 @@ createEntities: database: *database0 collectionName: &collection0Name coll0 -initialData: - - collectionName: *collection0Name - databaseName: *database0Name - documents: [] - tests: - description: "Database-level aggregate with $out includes read preference for 5.0+ server" runOnRequirements: