...
1{
2 "description": "change-streams-clusterTime",
3 "schemaVersion": "1.4",
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 "serverless": "forbid"
36 }
37 ],
38 "initialData": [
39 {
40 "collectionName": "collection0",
41 "databaseName": "database0",
42 "documents": []
43 }
44 ],
45 "tests": [
46 {
47 "description": "clusterTime is present",
48 "operations": [
49 {
50 "name": "createChangeStream",
51 "object": "collection0",
52 "arguments": {
53 "pipeline": []
54 },
55 "saveResultAsEntity": "changeStream0"
56 },
57 {
58 "name": "insertOne",
59 "object": "collection0",
60 "arguments": {
61 "document": {
62 "_id": 1
63 }
64 }
65 },
66 {
67 "name": "iterateUntilDocumentOrError",
68 "object": "changeStream0",
69 "expectResult": {
70 "ns": {
71 "db": "database0",
72 "coll": "collection0"
73 },
74 "clusterTime": {
75 "$$exists": true
76 }
77 }
78 }
79 ]
80 }
81 ]
82}
View as plain text