1{ 2 "collection_name": "test", 3 "database_name": "change-stream-tests", 4 "collection2_name": "test2", 5 "database2_name": "change-stream-tests-2", 6 "tests": [ 7 { 8 "description": "The watch helper must not throw a custom exception when executed against a single server topology, but instead depend on a server error", 9 "minServerVersion": "3.6.0", 10 "target": "collection", 11 "topology": [ 12 "single" 13 ], 14 "changeStreamPipeline": [], 15 "changeStreamOptions": {}, 16 "operations": [], 17 "expectations": [], 18 "result": { 19 "error": { 20 "code": 40573 21 } 22 } 23 }, 24 { 25 "description": "Change Stream should error when an invalid aggregation stage is passed in", 26 "minServerVersion": "3.6.0", 27 "target": "collection", 28 "topology": [ 29 "replicaset" 30 ], 31 "changeStreamPipeline": [ 32 { 33 "$unsupported": "foo" 34 } 35 ], 36 "changeStreamOptions": {}, 37 "operations": [ 38 { 39 "database": "change-stream-tests", 40 "collection": "test", 41 "name": "insertOne", 42 "arguments": { 43 "document": { 44 "z": 3 45 } 46 } 47 } 48 ], 49 "expectations": [ 50 { 51 "command_started_event": { 52 "command": { 53 "aggregate": "test", 54 "cursor": {}, 55 "pipeline": [ 56 { 57 "$changeStream": { 58 "fullDocument": "default" 59 } 60 }, 61 { 62 "$unsupported": "foo" 63 } 64 ] 65 }, 66 "command_name": "aggregate", 67 "database_name": "change-stream-tests" 68 } 69 } 70 ], 71 "result": { 72 "error": { 73 "code": 40324 74 } 75 } 76 }, 77 { 78 "description": "Change Stream should error when _id is projected out", 79 "minServerVersion": "4.1.11", 80 "target": "collection", 81 "topology": [ 82 "replicaset", 83 "sharded" 84 ], 85 "changeStreamPipeline": [ 86 { 87 "$project": { 88 "_id": 0 89 } 90 } 91 ], 92 "changeStreamOptions": {}, 93 "operations": [ 94 { 95 "database": "change-stream-tests", 96 "collection": "test", 97 "name": "insertOne", 98 "arguments": { 99 "document": { 100 "z": 3 101 } 102 } 103 } 104 ], 105 "result": { 106 "error": { 107 "code": 280, 108 "errorLabels": [ 109 "NonResumableChangeStreamError" 110 ] 111 } 112 } 113 } 114 ] 115} 116