File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed
tests/UnifiedSpecTests/change-streams Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " change-streams-clusterTime" ,
3
+ "schemaVersion" : " 1.3" ,
4
+ "createEntities" : [
5
+ {
6
+ "client" : {
7
+ "id" : " client0" ,
8
+ "useMultipleMongoses" : false
9
+ }
10
+ },
11
+ {
12
+ "database" : {
13
+ "id" : " database0" ,
14
+ "client" : " client0" ,
15
+ "databaseName" : " database0"
16
+ }
17
+ },
18
+ {
19
+ "collection" : {
20
+ "id" : " collection0" ,
21
+ "database" : " database0" ,
22
+ "collectionName" : " collection0"
23
+ }
24
+ }
25
+ ],
26
+ "runOnRequirements" : [
27
+ {
28
+ "minServerVersion" : " 4.0.0" ,
29
+ "topologies" : [
30
+ " replicaset" ,
31
+ " sharded-replicaset" ,
32
+ " load-balanced" ,
33
+ " sharded"
34
+ ]
35
+ }
36
+ ],
37
+ "initialData" : [
38
+ {
39
+ "collectionName" : " collection0" ,
40
+ "databaseName" : " database0" ,
41
+ "documents" : []
42
+ }
43
+ ],
44
+ "tests" : [
45
+ {
46
+ "description" : " clusterTime is present" ,
47
+ "operations" : [
48
+ {
49
+ "name" : " createChangeStream" ,
50
+ "object" : " collection0" ,
51
+ "arguments" : {
52
+ "pipeline" : []
53
+ },
54
+ "saveResultAsEntity" : " changeStream0"
55
+ },
56
+ {
57
+ "name" : " insertOne" ,
58
+ "object" : " collection0" ,
59
+ "arguments" : {
60
+ "document" : {
61
+ "_id" : 1
62
+ }
63
+ }
64
+ },
65
+ {
66
+ "name" : " iterateUntilDocumentOrError" ,
67
+ "object" : " changeStream0" ,
68
+ "expectResult" : {
69
+ "ns" : {
70
+ "db" : " database0" ,
71
+ "coll" : " collection0"
72
+ },
73
+ "clusterTime" : {
74
+ "$$exists" : true
75
+ }
76
+ }
77
+ }
78
+ ]
79
+ }
80
+ ]
81
+ }
You can’t perform that action at this time.
0 commit comments