...
1{
2 "description": "entity-client-cmap-events",
3 "schemaVersion": "1.3",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "useMultipleMongoses": true,
9 "observeEvents": [
10 "connectionReadyEvent",
11 "connectionCheckedOutEvent",
12 "connectionCheckedInEvent"
13 ]
14 }
15 },
16 {
17 "database": {
18 "id": "database0",
19 "client": "client0",
20 "databaseName": "database0Name"
21 }
22 },
23 {
24 "collection": {
25 "id": "collection0",
26 "database": "database0",
27 "collectionName": "coll0"
28 }
29 }
30 ],
31 "initialData": [
32 {
33 "collectionName": "coll0",
34 "databaseName": "database0Name",
35 "documents": []
36 }
37 ],
38 "tests": [
39 {
40 "description": "events are captured during an operation",
41 "operations": [
42 {
43 "name": "insertOne",
44 "object": "collection0",
45 "arguments": {
46 "document": {
47 "x": 1
48 }
49 }
50 }
51 ],
52 "expectEvents": [
53 {
54 "client": "client0",
55 "eventType": "cmap",
56 "events": [
57 {
58 "connectionReadyEvent": {}
59 },
60 {
61 "connectionCheckedOutEvent": {}
62 },
63 {
64 "connectionCheckedInEvent": {}
65 }
66 ]
67 }
68 ]
69 }
70 ]
71}
View as plain text