...
1{
2 "description": "entity-client-storeEventsAsEntities",
3 "schemaVersion": "1.2",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "storeEventsAsEntities": [
9 {
10 "id": "client0_events",
11 "events": [
12 "CommandStartedEvent",
13 "CommandSucceededEvent",
14 "CommandFailedEvent"
15 ]
16 }
17 ]
18 }
19 },
20 {
21 "database": {
22 "id": "database0",
23 "client": "client0",
24 "databaseName": "test"
25 }
26 },
27 {
28 "collection": {
29 "id": "collection0",
30 "database": "database0",
31 "collectionName": "coll0"
32 }
33 }
34 ],
35 "initialData": [
36 {
37 "collectionName": "coll0",
38 "databaseName": "test",
39 "documents": [
40 {
41 "_id": 1,
42 "x": 11
43 }
44 ]
45 }
46 ],
47 "tests": [
48 {
49 "description": "storeEventsAsEntities captures events",
50 "operations": [
51 {
52 "name": "find",
53 "object": "collection0",
54 "arguments": {
55 "filter": {}
56 },
57 "expectResult": [
58 {
59 "_id": 1,
60 "x": 11
61 }
62 ]
63 }
64 ]
65 }
66 ]
67}
View as plain text