...
1{
2 "runOn": [
3 {
4 "minServerVersion": "4.4"
5 }
6 ],
7 "database_name": "sdam-tests",
8 "collection_name": "find-network-timeout-error",
9 "data": [
10 {
11 "_id": 1
12 },
13 {
14 "_id": 2
15 }
16 ],
17 "tests": [
18 {
19 "description": "Ignore network timeout error on find",
20 "failPoint": {
21 "configureFailPoint": "failCommand",
22 "mode": {
23 "times": 1
24 },
25 "data": {
26 "failCommands": [
27 "find"
28 ],
29 "blockConnection": true,
30 "blockTimeMS": 500,
31 "appName": "findNetworkTimeoutErrorTest"
32 }
33 },
34 "clientOptions": {
35 "retryWrites": false,
36 "retryReads": false,
37 "appname": "findNetworkTimeoutErrorTest",
38 "socketTimeoutMS": 250
39 },
40 "operations": [
41 {
42 "name": "find",
43 "object": "collection",
44 "arguments": {
45 "filter": {
46 "_id": 1
47 }
48 },
49 "error": true
50 },
51 {
52 "name": "insertOne",
53 "object": "collection",
54 "arguments": {
55 "document": {
56 "_id": 3
57 }
58 }
59 },
60 {
61 "name": "assertEventCount",
62 "object": "testRunner",
63 "arguments": {
64 "event": "ServerMarkedUnknownEvent",
65 "count": 0
66 }
67 },
68 {
69 "name": "assertEventCount",
70 "object": "testRunner",
71 "arguments": {
72 "event": "PoolClearedEvent",
73 "count": 0
74 }
75 }
76 ],
77 "expectations": [
78 {
79 "command_started_event": {
80 "command": {
81 "find": "find-network-timeout-error"
82 },
83 "command_name": "find",
84 "database_name": "sdam-tests"
85 }
86 },
87 {
88 "command_started_event": {
89 "command": {
90 "insert": "find-network-timeout-error",
91 "documents": [
92 {
93 "_id": 3
94 }
95 ]
96 },
97 "command_name": "insert",
98 "database_name": "sdam-tests"
99 }
100 }
101 ],
102 "outcome": {
103 "collection": {
104 "data": [
105 {
106 "_id": 1
107 },
108 {
109 "_id": 2
110 },
111 {
112 "_id": 3
113 }
114 ]
115 }
116 }
117 }
118 ]
119}
View as plain text