From b0bbd657f84219212487d01a8ffe93a789e1e488 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Wed, 20 Oct 2021 13:56:24 -0400 Subject: [PATCH] PHPLIB-739, PHPLIB-745: Update aggregate-write-readPreference tests Skips $out tests for serverless environments and bumps minServerVersion to 4.2 for tests expecting a readConcern to be passed alongside a write stage. Synced with mongodb/specifications@dce2c48e697e9a7d08faad871e86b415bb481df7 --- .../crud/aggregate-write-readPreference.json | 9 ++++++--- .../crud/db-aggregate-write-readPreference.json | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/UnifiedSpecTests/crud/aggregate-write-readPreference.json b/tests/UnifiedSpecTests/crud/aggregate-write-readPreference.json index 2bb1945ba..bc887e83c 100644 --- a/tests/UnifiedSpecTests/crud/aggregate-write-readPreference.json +++ b/tests/UnifiedSpecTests/crud/aggregate-write-readPreference.json @@ -1,6 +1,6 @@ { "description": "aggregate-write-readPreference", - "schemaVersion": "1.3", + "schemaVersion": "1.4", "runOnRequirements": [ { "minServerVersion": "3.6", @@ -90,7 +90,8 @@ "description": "Aggregate with $out includes read preference for 5.0+ server", "runOnRequirements": [ { - "minServerVersion": "5.0" + "minServerVersion": "5.0", + "serverless": "forbid" } ], "operations": [ @@ -180,7 +181,9 @@ "description": "Aggregate with $out omits read preference for pre-5.0 server", "runOnRequirements": [ { - "maxServerVersion": "4.4.99" + "minServerVersion": "4.2", + "maxServerVersion": "4.4.99", + "serverless": "forbid" } ], "operations": [ diff --git a/tests/UnifiedSpecTests/crud/db-aggregate-write-readPreference.json b/tests/UnifiedSpecTests/crud/db-aggregate-write-readPreference.json index a89e79500..2a81282de 100644 --- a/tests/UnifiedSpecTests/crud/db-aggregate-write-readPreference.json +++ b/tests/UnifiedSpecTests/crud/db-aggregate-write-readPreference.json @@ -64,7 +64,8 @@ "description": "Database-level aggregate with $out includes read preference for 5.0+ server", "runOnRequirements": [ { - "minServerVersion": "5.0" + "minServerVersion": "5.0", + "serverless": "forbid" } ], "operations": [ @@ -157,7 +158,9 @@ "description": "Database-level aggregate with $out omits read preference for pre-5.0 server", "runOnRequirements": [ { - "maxServerVersion": "4.4.99" + "minServerVersion": "4.2", + "maxServerVersion": "4.4.99", + "serverless": "forbid" } ], "operations": [