| 1 |
{ |
| 2 |
"description": "returnDocument-enum-invalid", |
| 3 |
"schemaVersion": "1.0", |
| 4 |
"createEntities": [ |
| 5 |
{ |
| 6 |
"client": { |
| 7 |
"id": "client0" |
| 8 |
} |
| 9 |
}, |
| 10 |
{ |
| 11 |
"database": { |
| 12 |
"id": "database0", |
| 13 |
"client": "client0", |
| 14 |
"databaseName": "test" |
| 15 |
} |
| 16 |
}, |
| 17 |
{ |
| 18 |
"collection": { |
| 19 |
"id": "collection0", |
| 20 |
"database": "database0", |
| 21 |
"collectionName": "coll" |
| 22 |
} |
| 23 |
} |
| 24 |
], |
| 25 |
"tests": [ |
| 26 |
{ |
| 27 |
"description": "FindOneAndReplace returnDocument invalid enum value", |
| 28 |
"operations": [ |
| 29 |
{ |
| 30 |
"name": "findOneAndReplace", |
| 31 |
"object": "collection0", |
| 32 |
"arguments": { |
| 33 |
"filter": { |
| 34 |
"_id": 1 |
| 35 |
}, |
| 36 |
"replacement": { |
| 37 |
"_id": 1, |
| 38 |
"x": 111 |
| 39 |
}, |
| 40 |
"returnDocument": "invalid" |
| 41 |
} |
| 42 |
} |
| 43 |
] |
| 44 |
}, |
| 45 |
{ |
| 46 |
"description": "FindOneAndUpdate returnDocument invalid enum value", |
| 47 |
"operations": [ |
| 48 |
{ |
| 49 |
"name": "findOneAndUpdate", |
| 50 |
"object": "collection0", |
| 51 |
"arguments": { |
| 52 |
"filter": { |
| 53 |
"_id": 1 |
| 54 |
}, |
| 55 |
"update": { |
| 56 |
"$inc": { |
| 57 |
"x": 1 |
| 58 |
} |
| 59 |
}, |
| 60 |
"returnDocument": "invalid" |
| 61 |
} |
| 62 |
} |
| 63 |
] |
| 64 |
} |
| 65 |
] |
| 66 |
} |