File tree Expand file tree Collapse file tree 4 files changed +93
-24
lines changed
tests/UnifiedSpecTests/valid-fail Expand file tree Collapse file tree 4 files changed +93
-24
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " entity-findCursor-malformed" ,
3
+ "schemaVersion" : " 1.3" ,
4
+ "createEntities" : [
5
+ {
6
+ "client" : {
7
+ "id" : " client0"
8
+ }
9
+ },
10
+ {
11
+ "database" : {
12
+ "id" : " database0" ,
13
+ "client" : " client0" ,
14
+ "databaseName" : " database0Name"
15
+ }
16
+ },
17
+ {
18
+ "collection" : {
19
+ "id" : " collection0" ,
20
+ "database" : " database0" ,
21
+ "collectionName" : " coll0"
22
+ }
23
+ }
24
+ ],
25
+ "initialData" : [
26
+ {
27
+ "databaseName" : " database0Name" ,
28
+ "collectionName" : " coll0" ,
29
+ "documents" : []
30
+ }
31
+ ],
32
+ "tests" : [
33
+ {
34
+ "description" : " createFindCursor fails if filter is not specified" ,
35
+ "operations" : [
36
+ {
37
+ "name" : " createFindCursor" ,
38
+ "object" : " collection0" ,
39
+ "saveResultAsEntity" : " cursor0"
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
Original file line number Diff line number Diff line change 1
1
{
2
- "description" : " entity-find-cursor " ,
2
+ "description" : " entity-findCursor " ,
3
3
"schemaVersion" : " 1.3" ,
4
4
"createEntities" : [
5
5
{
30
30
}
31
31
],
32
32
"tests" : [
33
- {
34
- "description" : " createFindCursor fails if filter is not specified" ,
35
- "operations" : [
36
- {
37
- "name" : " createFindCursor" ,
38
- "object" : " collection0" ,
39
- "saveResultAsEntity" : " cursor0"
40
- }
41
- ]
42
- },
43
33
{
44
34
"description" : " iterateUntilDocumentOrError fails if it references a nonexistent entity" ,
45
35
"operations" : [
Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " ignoreResultAndError-malformed" ,
3
+ "schemaVersion" : " 1.3" ,
4
+ "createEntities" : [
5
+ {
6
+ "client" : {
7
+ "id" : " client0" ,
8
+ "useMultipleMongoses" : true
9
+ }
10
+ },
11
+ {
12
+ "database" : {
13
+ "id" : " database0" ,
14
+ "client" : " client0" ,
15
+ "databaseName" : " database0Name"
16
+ }
17
+ },
18
+ {
19
+ "collection" : {
20
+ "id" : " collection0" ,
21
+ "database" : " database0" ,
22
+ "collectionName" : " coll0"
23
+ }
24
+ }
25
+ ],
26
+ "initialData" : [
27
+ {
28
+ "collectionName" : " coll0" ,
29
+ "databaseName" : " database0Name" ,
30
+ "documents" : []
31
+ }
32
+ ],
33
+ "tests" : [
34
+ {
35
+ "description" : " malformed operation fails if ignoreResultAndError is true" ,
36
+ "operations" : [
37
+ {
38
+ "name" : " insertOne" ,
39
+ "object" : " collection0" ,
40
+ "arguments" : {
41
+ "foo" : " bar"
42
+ },
43
+ "ignoreResultAndError" : true
44
+ }
45
+ ]
46
+ }
47
+ ]
48
+ }
Original file line number Diff line number Diff line change 54
54
"ignoreResultAndError" : false
55
55
}
56
56
]
57
- },
58
- {
59
- "description" : " malformed operation fails if ignoreResultAndError is true" ,
60
- "operations" : [
61
- {
62
- "name" : " insertOne" ,
63
- "object" : " collection0" ,
64
- "arguments" : {
65
- "foo" : " bar"
66
- },
67
- "ignoreResultAndError" : true
68
- }
69
- ]
70
57
}
71
58
]
72
59
}
You can’t perform that action at this time.
0 commit comments