-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ied tests (#3402)
- Loading branch information
1 parent
085471d
commit 12e951b
Showing
6 changed files
with
144 additions
and
5 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
test/spec/change-streams/unified/change-streams-clusterTime.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"description": "change-streams-clusterTime", | ||
"schemaVersion": "1.3", | ||
"createEntities": [ | ||
{ | ||
"client": { | ||
"id": "client0", | ||
"useMultipleMongoses": false | ||
} | ||
}, | ||
{ | ||
"database": { | ||
"id": "database0", | ||
"client": "client0", | ||
"databaseName": "database0" | ||
} | ||
}, | ||
{ | ||
"collection": { | ||
"id": "collection0", | ||
"database": "database0", | ||
"collectionName": "collection0" | ||
} | ||
} | ||
], | ||
"runOnRequirements": [ | ||
{ | ||
"minServerVersion": "4.0.0", | ||
"topologies": [ | ||
"replicaset", | ||
"sharded-replicaset", | ||
"load-balanced", | ||
"sharded" | ||
] | ||
} | ||
], | ||
"initialData": [ | ||
{ | ||
"collectionName": "collection0", | ||
"databaseName": "database0", | ||
"documents": [] | ||
} | ||
], | ||
"tests": [ | ||
{ | ||
"description": "clusterTime is present", | ||
"operations": [ | ||
{ | ||
"name": "createChangeStream", | ||
"object": "collection0", | ||
"arguments": { | ||
"pipeline": [] | ||
}, | ||
"saveResultAsEntity": "changeStream0" | ||
}, | ||
{ | ||
"name": "insertOne", | ||
"object": "collection0", | ||
"arguments": { | ||
"document": { | ||
"_id": 1 | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "iterateUntilDocumentOrError", | ||
"object": "changeStream0", | ||
"expectResult": { | ||
"ns": { | ||
"db": "database0", | ||
"coll": "collection0" | ||
}, | ||
"clusterTime": { | ||
"$$exists": true | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
40 changes: 40 additions & 0 deletions
40
test/spec/change-streams/unified/change-streams-clusterTime.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
description: "change-streams-clusterTime" | ||
schemaVersion: "1.3" | ||
createEntities: | ||
- client: | ||
id: &client0 client0 | ||
useMultipleMongoses: false | ||
- database: | ||
id: &database0 database0 | ||
client: *client0 | ||
databaseName: *database0 | ||
- collection: | ||
id: &collection0 collection0 | ||
database: *database0 | ||
collectionName: *collection0 | ||
|
||
runOnRequirements: | ||
- minServerVersion: "4.0.0" | ||
topologies: [ replicaset, sharded-replicaset, load-balanced, sharded ] | ||
|
||
initialData: | ||
- collectionName: *collection0 | ||
databaseName: *database0 | ||
documents: [] | ||
|
||
tests: | ||
- description: "clusterTime is present" | ||
operations: | ||
- name: createChangeStream | ||
object: *collection0 | ||
arguments: { pipeline: [] } | ||
saveResultAsEntity: &changeStream0 changeStream0 | ||
- name: insertOne | ||
object: *collection0 | ||
arguments: | ||
document: { _id: 1 } | ||
- name: iterateUntilDocumentOrError | ||
object: *changeStream0 | ||
expectResult: | ||
ns: { db: *database0, coll: *collection0 } | ||
clusterTime: { $$exists: true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters