Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ccec13d

Browse files
committed
Add missing valid-fail test
1 parent b0d7fc6 commit ccec13d

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
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+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /