Skip to content

Commit b0bbd65

Browse files
committed
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@dce2c48
1 parent 88d74b8 commit b0bbd65

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Diff for: tests/UnifiedSpecTests/crud/aggregate-write-readPreference.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description": "aggregate-write-readPreference",
3-
"schemaVersion": "1.3",
3+
"schemaVersion": "1.4",
44
"runOnRequirements": [
55
{
66
"minServerVersion": "3.6",
@@ -90,7 +90,8 @@
9090
"description": "Aggregate with $out includes read preference for 5.0+ server",
9191
"runOnRequirements": [
9292
{
93-
"minServerVersion": "5.0"
93+
"minServerVersion": "5.0",
94+
"serverless": "forbid"
9495
}
9596
],
9697
"operations": [
@@ -180,7 +181,9 @@
180181
"description": "Aggregate with $out omits read preference for pre-5.0 server",
181182
"runOnRequirements": [
182183
{
183-
"maxServerVersion": "4.4.99"
184+
"minServerVersion": "4.2",
185+
"maxServerVersion": "4.4.99",
186+
"serverless": "forbid"
184187
}
185188
],
186189
"operations": [

Diff for: tests/UnifiedSpecTests/crud/db-aggregate-write-readPreference.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"description": "Database-level aggregate with $out includes read preference for 5.0+ server",
6565
"runOnRequirements": [
6666
{
67-
"minServerVersion": "5.0"
67+
"minServerVersion": "5.0",
68+
"serverless": "forbid"
6869
}
6970
],
7071
"operations": [
@@ -157,7 +158,9 @@
157158
"description": "Database-level aggregate with $out omits read preference for pre-5.0 server",
158159
"runOnRequirements": [
159160
{
160-
"maxServerVersion": "4.4.99"
161+
"minServerVersion": "4.2",
162+
"maxServerVersion": "4.4.99",
163+
"serverless": "forbid"
161164
}
162165
],
163166
"operations": [

0 commit comments

Comments
 (0)