File tree 6 files changed +118
-5
lines changed
unified-test-format/valid-pass
6 files changed +118
-5
lines changed Original file line number Diff line number Diff line change 249
249
"name" : " estimatedDocumentCount" ,
250
250
"object" : " collection0" ,
251
251
"expectError" : {
252
- "isError " : true
252
+ "isClientError " : true
253
253
}
254
254
}
255
255
],
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ tests:
130
130
- name : estimatedDocumentCount
131
131
object : *collection0
132
132
expectError :
133
- isError : true
133
+ isClientError : true
134
134
expectEvents :
135
135
- client : *client0
136
136
events :
Original file line number Diff line number Diff line change 195
195
"object" : " collection1" ,
196
196
"name" : " estimatedDocumentCount" ,
197
197
"expectError" : {
198
- "isError " : true
198
+ "isClientError " : true
199
199
}
200
200
}
201
201
],
241
241
"object" : " collection0" ,
242
242
"name" : " estimatedDocumentCount" ,
243
243
"expectError" : {
244
- "isError " : true
244
+ "isClientError " : true
245
245
}
246
246
}
247
247
],
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ tests:
116
116
object : *collection1
117
117
name : estimatedDocumentCount
118
118
expectError :
119
- isError : true
119
+ isClientError : true
120
120
expectEvents :
121
121
-
122
122
client : *client1
Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " expectedError-isClientError" ,
3
+ "schemaVersion" : " 1.3" ,
4
+ "runOnRequirements" : [
5
+ {
6
+ "minServerVersion" : " 4.0" ,
7
+ "topologies" : [
8
+ " single" ,
9
+ " replicaset"
10
+ ]
11
+ },
12
+ {
13
+ "minServerVersion" : " 4.1.7" ,
14
+ "topologies" : [
15
+ " sharded" ,
16
+ " load-balanced"
17
+ ]
18
+ }
19
+ ],
20
+ "createEntities" : [
21
+ {
22
+ "client" : {
23
+ "id" : " client0" ,
24
+ "useMultipleMongoses" : false
25
+ }
26
+ },
27
+ {
28
+ "database" : {
29
+ "id" : " database0" ,
30
+ "client" : " client0" ,
31
+ "databaseName" : " test"
32
+ }
33
+ }
34
+ ],
35
+ "tests" : [
36
+ {
37
+ "description" : " isClientError considers network errors" ,
38
+ "operations" : [
39
+ {
40
+ "name" : " failPoint" ,
41
+ "object" : " testRunner" ,
42
+ "arguments" : {
43
+ "client" : " client0" ,
44
+ "failPoint" : {
45
+ "configureFailPoint" : " failCommand" ,
46
+ "mode" : {
47
+ "times" : 1
48
+ },
49
+ "data" : {
50
+ "failCommands" : [
51
+ " ping"
52
+ ],
53
+ "closeConnection" : true
54
+ }
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "name" : " runCommand" ,
60
+ "object" : " database0" ,
61
+ "arguments" : {
62
+ "commandName" : " ping" ,
63
+ "command" : {
64
+ "ping" : 1
65
+ }
66
+ },
67
+ "expectError" : {
68
+ "isClientError" : true
69
+ }
70
+ }
71
+ ]
72
+ }
73
+ ]
74
+ }
Original file line number Diff line number Diff line change
1
+ description : " expectedError-isClientError"
2
+
3
+ schemaVersion : " 1.3"
4
+
5
+ runOnRequirements :
6
+ - minServerVersion : " 4.0"
7
+ topologies : [single, replicaset]
8
+ - minServerVersion : " 4.1.7"
9
+ topologies : [sharded, load-balanced]
10
+
11
+ createEntities :
12
+ - client :
13
+ id : &client0 client0
14
+ useMultipleMongoses : false
15
+ - database :
16
+ id : &database0 database0
17
+ client : *client0
18
+ databaseName : &database0Name test
19
+
20
+ tests :
21
+ - description : " isClientError considers network errors"
22
+ operations :
23
+ - name : failPoint
24
+ object : testRunner
25
+ arguments :
26
+ client : *client0
27
+ failPoint :
28
+ configureFailPoint : failCommand
29
+ mode : { times: 1 }
30
+ data :
31
+ failCommands : [ ping ]
32
+ closeConnection : true
33
+ - name : runCommand
34
+ object : *database0
35
+ arguments :
36
+ commandName : ping
37
+ command : { ping: 1 }
38
+ expectError :
39
+ isClientError : true
You can’t perform that action at this time.
0 commit comments