File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
tests/UnifiedSpecTests/valid-fail Expand file tree Collapse file tree 1 file changed +65
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " returnDocument-enum-invalid" ,
3
+ "schemaVersion" : " 1.0" ,
4
+ "createEntities" : [
5
+ {
6
+ "client" : {
7
+ "id" : " client0"
8
+ }
9
+ },
10
+ {
11
+ "database" : null ,
12
+ "id" : " database0" ,
13
+ "client" : " client0" ,
14
+ "databaseName" : " test"
15
+ },
16
+ {
17
+ "collection" : {
18
+ "id" : " collection0" ,
19
+ "database" : " database0" ,
20
+ "collectionName" : " coll"
21
+ }
22
+ }
23
+ ],
24
+ "tests" : [
25
+ {
26
+ "description" : " FindOneAndReplace returnDocument invalid enum value" ,
27
+ "operations" : [
28
+ {
29
+ "name" : " findOneAndReplace" ,
30
+ "object" : " collection0" ,
31
+ "arguments" : {
32
+ "filter" : {
33
+ "_id" : 1
34
+ },
35
+ "replacement" : {
36
+ "_id" : 1 ,
37
+ "x" : 111
38
+ },
39
+ "returnDocument" : " invalid"
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "description" : " FindOneAndUpdate returnDocument invalid enum value" ,
46
+ "operations" : [
47
+ {
48
+ "name" : " findOneAndUpdate" ,
49
+ "object" : " collection0" ,
50
+ "arguments" : {
51
+ "filter" : {
52
+ "_id" : 1
53
+ },
54
+ "update" : {
55
+ "$inc" : {
56
+ "x" : 1
57
+ }
58
+ },
59
+ "returnDocument" : " invalid"
60
+ }
61
+ }
62
+ ]
63
+ }
64
+ ]
65
+ }
You can’t perform that action at this time.
0 commit comments