Skip to content

Commit

Permalink
test(NODE-3684): skip tests on serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Nov 2, 2021
1 parent ec58e76 commit 8e64d3b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
8 changes: 5 additions & 3 deletions test/spec/crud/unified/aggregate-write-readPreference.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"description": "aggregate-write-readPreference",
"schemaVersion": "1.3",
"schemaVersion": "1.4",
"runOnRequirements": [
{
"minServerVersion": "3.6",
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -181,7 +182,8 @@
"runOnRequirements": [
{
"minServerVersion": "4.2",
"maxServerVersion": "4.4.99"
"maxServerVersion": "4.4.99",
"serverless": "forbid"
}
],
"operations": [
Expand Down
4 changes: 3 additions & 1 deletion test/spec/crud/unified/aggregate-write-readPreference.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: aggregate-write-readPreference

schemaVersion: '1.3'
schemaVersion: '1.4'

runOnRequirements:
# 3.6+ non-standalone is needed to utilize $readPreference in OP_MSG
Expand Down Expand Up @@ -59,6 +59,7 @@ tests:
- description: "Aggregate with $out includes read preference for 5.0+ server"
runOnRequirements:
- minServerVersion: "5.0"
serverless: "forbid"
operations:
- object: *collection0
name: aggregate
Expand Down Expand Up @@ -91,6 +92,7 @@ tests:
# drivers may avoid inheriting a client-level read concern for pre-4.2.
- minServerVersion: "4.2"
maxServerVersion: "4.4.99"
serverless: "forbid"
operations:
- object: *collection0
name: aggregate
Expand Down
6 changes: 4 additions & 2 deletions test/spec/crud/unified/db-aggregate-write-readPreference.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -158,7 +159,8 @@
"runOnRequirements": [
{
"minServerVersion": "4.2",
"maxServerVersion": "4.4.99"
"maxServerVersion": "4.4.99",
"serverless": "forbid"
}
],
"operations": [
Expand Down
2 changes: 2 additions & 0 deletions test/spec/crud/unified/db-aggregate-write-readPreference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ tests:
- description: "Database-level aggregate with $out includes read preference for 5.0+ server"
runOnRequirements:
- minServerVersion: "5.0"
serverless: "forbid"
operations:
- object: *database0
name: aggregate
Expand Down Expand Up @@ -85,6 +86,7 @@ tests:
# drivers may avoid inheriting a client-level read concern for pre-4.2.
- minServerVersion: "4.2"
maxServerVersion: "4.4.99"
serverless: "forbid"
operations:
- object: *database0
name: aggregate
Expand Down

0 comments on commit 8e64d3b

Please sign in to comment.