Skip to content

Commit 538d4af

Browse files
author
levon80999
committed
PHPLIB-945: Update ChangeStreamEvent type definition to include clusterTime
Sync mongodb/specifications@d9a0e7b
1 parent 1e20e8d commit 538d4af

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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+
}

0 commit comments

Comments
 (0)