...
1{
2 "description": "updateMany-validation",
3 "schemaVersion": "1.0",
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": "crud-tests"
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": "crud-tests",
32 "documents": [
33 {
34 "_id": 1,
35 "x": 11
36 },
37 {
38 "_id": 2,
39 "x": 22
40 },
41 {
42 "_id": 3,
43 "x": 33
44 }
45 ]
46 }
47 ],
48 "tests": [
49 {
50 "description": "UpdateMany requires atomic modifiers",
51 "operations": [
52 {
53 "name": "updateMany",
54 "object": "collection0",
55 "arguments": {
56 "filter": {
57 "_id": {
58 "$gt": 1
59 }
60 },
61 "update": {
62 "x": 44
63 }
64 },
65 "expectError": {
66 "isClientError": true
67 }
68 }
69 ],
70 "expectEvents": [
71 {
72 "client": "client0",
73 "events": []
74 }
75 ],
76 "outcome": [
77 {
78 "collectionName": "coll0",
79 "databaseName": "crud-tests",
80 "documents": [
81 {
82 "_id": 1,
83 "x": 11
84 },
85 {
86 "_id": 2,
87 "x": 22
88 },
89 {
90 "_id": 3,
91 "x": 33
92 }
93 ]
94 }
95 ]
96 }
97 ]
98}
View as plain text