...
1{
2 "runOn": [
3 {
4 "minServerVersion": "4.0",
5 "topology": [
6 "single",
7 "replicaset"
8 ]
9 },
10 {
11 "minServerVersion": "4.1.7",
12 "topology": [
13 "sharded",
14 "load-balanced"
15 ]
16 }
17 ],
18 "database_name": "retryable-reads-tests",
19 "collection_name": "coll",
20 "data": [],
21 "tests": [
22 {
23 "description": "ListCollectionObjects succeeds on first attempt",
24 "operations": [
25 {
26 "name": "listCollectionObjects",
27 "object": "database"
28 }
29 ],
30 "expectations": [
31 {
32 "command_started_event": {
33 "command": {
34 "listCollections": 1
35 }
36 }
37 }
38 ]
39 },
40 {
41 "description": "ListCollectionObjects succeeds on second attempt",
42 "failPoint": {
43 "configureFailPoint": "failCommand",
44 "mode": {
45 "times": 1
46 },
47 "data": {
48 "failCommands": [
49 "listCollections"
50 ],
51 "closeConnection": true
52 }
53 },
54 "operations": [
55 {
56 "name": "listCollectionObjects",
57 "object": "database"
58 }
59 ],
60 "expectations": [
61 {
62 "command_started_event": {
63 "command": {
64 "listCollections": 1
65 }
66 }
67 },
68 {
69 "command_started_event": {
70 "command": {
71 "listCollections": 1
72 }
73 }
74 }
75 ]
76 },
77 {
78 "description": "ListCollectionObjects fails on first attempt",
79 "clientOptions": {
80 "retryReads": false
81 },
82 "failPoint": {
83 "configureFailPoint": "failCommand",
84 "mode": {
85 "times": 1
86 },
87 "data": {
88 "failCommands": [
89 "listCollections"
90 ],
91 "closeConnection": true
92 }
93 },
94 "operations": [
95 {
96 "name": "listCollectionObjects",
97 "object": "database",
98 "error": true
99 }
100 ],
101 "expectations": [
102 {
103 "command_started_event": {
104 "command": {
105 "listCollections": 1
106 }
107 }
108 }
109 ]
110 },
111 {
112 "description": "ListCollectionObjects fails on second attempt",
113 "failPoint": {
114 "configureFailPoint": "failCommand",
115 "mode": {
116 "times": 2
117 },
118 "data": {
119 "failCommands": [
120 "listCollections"
121 ],
122 "closeConnection": true
123 }
124 },
125 "operations": [
126 {
127 "name": "listCollectionObjects",
128 "object": "database",
129 "error": true
130 }
131 ],
132 "expectations": [
133 {
134 "command_started_event": {
135 "command": {
136 "listCollections": 1
137 }
138 }
139 },
140 {
141 "command_started_event": {
142 "command": {
143 "listCollections": 1
144 }
145 }
146 }
147 ]
148 }
149 ]
150}
View as plain text