...
1{
2 "description": "matches-lte-operator",
3 "schemaVersion": "1.5",
4 "createEntities": [
5 {
6 "client": {
7 "id": "client0",
8 "observeEvents": [
9 "commandStartedEvent"
10 ]
11 }
12 },
13 {
14 "database": {
15 "id": "database0",
16 "client": "client0",
17 "databaseName": "database0Name"
18 }
19 },
20 {
21 "collection": {
22 "id": "collection0",
23 "database": "database0",
24 "collectionName": "coll0"
25 }
26 }
27 ],
28 "initialData": [
29 {
30 "collectionName": "coll0",
31 "databaseName": "database0Name",
32 "documents": []
33 }
34 ],
35 "tests": [
36 {
37 "description": "special lte matching operator",
38 "operations": [
39 {
40 "name": "insertOne",
41 "object": "collection0",
42 "arguments": {
43 "document": {
44 "_id": 1,
45 "y": 1
46 }
47 }
48 }
49 ],
50 "expectEvents": [
51 {
52 "client": "client0",
53 "events": [
54 {
55 "commandStartedEvent": {
56 "command": {
57 "insert": "coll0",
58 "documents": [
59 {
60 "_id": {
61 "$$lte": 1
62 },
63 "y": {
64 "$$lte": 2
65 }
66 }
67 ]
68 },
69 "commandName": "insert",
70 "databaseName": "database0Name"
71 }
72 }
73 ]
74 }
75 ]
76 }
77 ]
78}
View as plain text