...
1{
2 "description": "expectedEventsForClient-ignoreExtraEvents",
3 "schemaVersion": "1.7",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "useMultipleMongoses": true,
9 "observeEvents": [
10 "commandStartedEvent"
11 ]
12 }
13 },
14 {
15 "database": {
16 "id": "database0",
17 "client": "client0",
18 "databaseName": "database0Name"
19 }
20 },
21 {
22 "collection": {
23 "id": "collection0",
24 "database": "database0",
25 "collectionName": "coll0"
26 }
27 }
28 ],
29 "initialData": [
30 {
31 "collectionName": "coll0",
32 "databaseName": "database0Name",
33 "documents": []
34 }
35 ],
36 "tests": [
37 {
38 "description": "ignoreExtraEvents can be set to false",
39 "operations": [
40 {
41 "name": "insertOne",
42 "object": "collection0",
43 "arguments": {
44 "document": {
45 "_id": 1
46 }
47 }
48 }
49 ],
50 "expectEvents": [
51 {
52 "client": "client0",
53 "ignoreExtraEvents": false,
54 "events": [
55 {
56 "commandStartedEvent": {
57 "command": {
58 "insert": "coll0",
59 "documents": [
60 {
61 "_id": 1
62 }
63 ]
64 },
65 "commandName": "insert"
66 }
67 }
68 ]
69 }
70 ]
71 },
72 {
73 "description": "ignoreExtraEvents can be set to true",
74 "operations": [
75 {
76 "name": "insertOne",
77 "object": "collection0",
78 "arguments": {
79 "document": {
80 "_id": 2
81 }
82 }
83 },
84 {
85 "name": "insertOne",
86 "object": "collection0",
87 "arguments": {
88 "document": {
89 "_id": 3
90 }
91 }
92 }
93 ],
94 "expectEvents": [
95 {
96 "client": "client0",
97 "ignoreExtraEvents": true,
98 "events": [
99 {
100 "commandStartedEvent": {
101 "command": {
102 "insert": "coll0",
103 "documents": [
104 {
105 "_id": 2
106 }
107 ]
108 },
109 "commandName": "insert"
110 }
111 }
112 ]
113 }
114 ]
115 },
116 {
117 "description": "ignoreExtraEvents defaults to false if unset",
118 "operations": [
119 {
120 "name": "insertOne",
121 "object": "collection0",
122 "arguments": {
123 "document": {
124 "_id": 4
125 }
126 }
127 }
128 ],
129 "expectEvents": [
130 {
131 "client": "client0",
132 "events": [
133 {
134 "commandStartedEvent": {
135 "command": {
136 "insert": "coll0",
137 "documents": [
138 {
139 "_id": 4
140 }
141 ]
142 },
143 "commandName": "insert"
144 }
145 }
146 ]
147 }
148 ]
149 }
150 ]
151}
View as plain text