Skip to content

Commit

Permalink
test(NODE-6184): sync CRUD spec tests (#4263)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp authored Oct 2, 2024
1 parent d56e235 commit 91f3035
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 145 deletions.
69 changes: 0 additions & 69 deletions test/spec/crud/unified/aggregate-write-readPreference.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@
"x": 33
}
]
},
{
"collectionName": "coll1",
"databaseName": "db0",
"documents": []
}
],
"tests": [
Expand Down Expand Up @@ -159,22 +154,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll1",
"databaseName": "db0",
"documents": [
{
"_id": 2,
"x": 22
},
{
"_id": 3,
"x": 33
}
]
}
]
},
{
Expand Down Expand Up @@ -250,22 +229,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll1",
"databaseName": "db0",
"documents": [
{
"_id": 2,
"x": 22
},
{
"_id": 3,
"x": 33
}
]
}
]
},
{
Expand Down Expand Up @@ -344,22 +307,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll1",
"databaseName": "db0",
"documents": [
{
"_id": 2,
"x": 22
},
{
"_id": 3,
"x": 33
}
]
}
]
},
{
Expand Down Expand Up @@ -438,22 +385,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll1",
"databaseName": "db0",
"documents": [
{
"_id": 2,
"x": 22
},
{
"_id": 3,
"x": 33
}
]
}
]
}
]
Expand Down
12 changes: 0 additions & 12 deletions test/spec/crud/unified/aggregate-write-readPreference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -152,4 +141,3 @@ tests:
$readPreference: { $$exists: false }
readConcern: *readConcern
writeConcern: *writeConcern
outcome: *outcome
51 changes: 0 additions & 51 deletions test/spec/crud/unified/db-aggregate-write-readPreference.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
}
}
],
"initialData": [
{
"collectionName": "coll0",
"databaseName": "db0",
"documents": []
}
],
"tests": [
{
"description": "Database-level aggregate with $out includes read preference for 5.0+ server",
Expand Down Expand Up @@ -141,17 +134,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll0",
"databaseName": "db0",
"documents": [
{
"_id": 1
}
]
}
]
},
{
Expand Down Expand Up @@ -235,17 +217,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll0",
"databaseName": "db0",
"documents": [
{
"_id": 1
}
]
}
]
},
{
Expand Down Expand Up @@ -332,17 +303,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll0",
"databaseName": "db0",
"documents": [
{
"_id": 1
}
]
}
]
},
{
Expand Down Expand Up @@ -429,17 +389,6 @@
}
]
}
],
"outcome": [
{
"collectionName": "coll0",
"databaseName": "db0",
"documents": [
{
"_id": 1
}
]
}
]
}
]
Expand Down
13 changes: 0 additions & 13 deletions test/spec/crud/unified/db-aggregate-write-readPreference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -73,11 +68,6 @@ tests:
$readPreference: *readPreference
readConcern: *readConcern
writeConcern: *writeConcern
outcome: &outcome
- collectionName: *collection0Name
databaseName: *database0Name
documents:
- { _id: 1 }

- description: "Database-level aggregate with $out omits read preference for pre-5.0 server"
runOnRequirements:
Expand All @@ -102,7 +92,6 @@ tests:
$readPreference: { $$exists: false }
readConcern: *readConcern
writeConcern: *writeConcern
outcome: *outcome

- description: "Database-level aggregate with $merge includes read preference for 5.0+ server"
runOnRequirements:
Expand All @@ -127,7 +116,6 @@ tests:
$readPreference: *readPreference
readConcern: *readConcern
writeConcern: *writeConcern
outcome: *outcome

- description: "Database-level aggregate with $merge omits read preference for pre-5.0 server"
runOnRequirements:
Expand All @@ -148,4 +136,3 @@ tests:
$readPreference: { $$exists: false }
readConcern: *readConcern
writeConcern: *writeConcern
outcome: *outcome

0 comments on commit 91f3035

Please sign in to comment.