Debian Codegraph @

testdata/connection-monitoring-and-pooling/logging/connection-pool-options.json

raw symbols SCIP
1 {
2 "description": "connection-pool-options",
3 "schemaVersion": "1.13",
4 "runOnRequirements": [
5 {
6 "topologies": [
7 "single"
8 ]
9 }
10 ],
11 "tests": [
12 {
13 "description": "Options should be included in connection pool created message when specified",
14 "operations": [
15 {
16 "name": "createEntities",
17 "object": "testRunner",
18 "arguments": {
19 "entities": [
20 {
21 "client": {
22 "id": "client",
23 "observeEvents": [
24 "connectionReadyEvent"
25 ],
26 "observeLogMessages": {
27 "connection": "debug"
28 },
29 "uriOptions": {
30 "minPoolSize": 1,
31 "maxPoolSize": 5,
32 "maxIdleTimeMS": 10000
33 }
34 }
35 }
36 ]
37 }
38 },
39 {
40 "name": "waitForEvent",
41 "object": "testRunner",
42 "arguments": {
43 "client": "client",
44 "event": {
45 "connectionReadyEvent": {}
46 },
47 "count": 1
48 }
49 }
50 ],
51 "expectLogMessages": [
52 {
53 "client": "client",
54 "messages": [
55 {
56 "level": "debug",
57 "component": "connection",
58 "data": {
59 "message": "Connection pool created",
60 "serverHost": {
61 "$$type": "string"
62 },
63 "serverPort": {
64 "$$type": [
65 "int",
66 "long"
67 ]
68 },
69 "minPoolSize": 1,
70 "maxPoolSize": 5,
71 "maxIdleTimeMS": 10000
72 }
73 },
74 {
75 "level": "debug",
76 "component": "connection",
77 "data": {
78 "message": "Connection pool ready",
79 "serverHost": {
80 "$$type": "string"
81 },
82 "serverPort": {
83 "$$type": [
84 "int",
85 "long"
86 ]
87 }
88 }
89 },
90 {
91 "level": "debug",
92 "component": "connection",
93 "data": {
94 "message": "Connection created",
95 "driverConnectionId": {
96 "$$type": [
97 "int",
98 "long"
99 ]
100 },
101 "serverHost": {
102 "$$type": "string"
103 },
104 "serverPort": {
105 "$$type": [
106 "int",
107 "long"
108 ]
109 }
110 }
111 },
112 {
113 "level": "debug",
114 "component": "connection",
115 "data": {
116 "message": "Connection ready",
117 "driverConnectionId": {
118 "$$type": [
119 "int",
120 "long"
121 ]
122 },
123 "serverHost": {
124 "$$type": "string"
125 },
126 "serverPort": {
127 "$$type": [
128 "int",
129 "long"
130 ]
131 },
132 "durationMS": {
133 "$$type": [
134 "double",
135 "int",
136 "long"
137 ]
138 }
139 }
140 }
141 ]
142 }
143 ]
144 },
145 {
146 "description": "maxConnecting should be included in connection pool created message when specified",
147 "operations": [
148 {
149 "name": "createEntities",
150 "object": "testRunner",
151 "arguments": {
152 "entities": [
153 {
154 "client": {
155 "id": "client",
156 "observeEvents": [
157 "poolReadyEvent"
158 ],
159 "observeLogMessages": {
160 "connection": "debug"
161 },
162 "uriOptions": {
163 "maxConnecting": 5
164 }
165 }
166 }
167 ]
168 }
169 },
170 {
171 "name": "waitForEvent",
172 "object": "testRunner",
173 "arguments": {
174 "client": "client",
175 "event": {
176 "poolReadyEvent": {}
177 },
178 "count": 1
179 }
180 }
181 ],
182 "expectLogMessages": [
183 {
184 "client": "client",
185 "messages": [
186 {
187 "level": "debug",
188 "component": "connection",
189 "data": {
190 "message": "Connection pool created",
191 "serverHost": {
192 "$$type": "string"
193 },
194 "serverPort": {
195 "$$type": [
196 "int",
197 "long"
198 ]
199 },
200 "maxConnecting": 5
201 }
202 },
203 {
204 "level": "debug",
205 "component": "connection",
206 "data": {
207 "message": "Connection pool ready",
208 "serverHost": {
209 "$$type": "string"
210 },
211 "serverPort": {
212 "$$type": [
213 "int",
214 "long"
215 ]
216 }
217 }
218 }
219 ]
220 }
221 ]
222 },
223 {
224 "description": "waitQueueTimeoutMS should be included in connection pool created message when specified",
225 "operations": [
226 {
227 "name": "createEntities",
228 "object": "testRunner",
229 "arguments": {
230 "entities": [
231 {
232 "client": {
233 "id": "client",
234 "observeEvents": [
235 "poolReadyEvent"
236 ],
237 "observeLogMessages": {
238 "connection": "debug"
239 },
240 "uriOptions": {
241 "waitQueueTimeoutMS": 10000
242 }
243 }
244 }
245 ]
246 }
247 },
248 {
249 "name": "waitForEvent",
250 "object": "testRunner",
251 "arguments": {
252 "client": "client",
253 "event": {
254 "poolReadyEvent": {}
255 },
256 "count": 1
257 }
258 }
259 ],
260 "expectLogMessages": [
261 {
262 "client": "client",
263 "messages": [
264 {
265 "level": "debug",
266 "component": "connection",
267 "data": {
268 "message": "Connection pool created",
269 "serverHost": {
270 "$$type": "string"
271 },
272 "serverPort": {
273 "$$type": [
274 "int",
275 "long"
276 ]
277 },
278 "waitQueueTimeoutMS": 10000
279 }
280 },
281 {
282 "level": "debug",
283 "component": "connection",
284 "data": {
285 "message": "Connection pool ready",
286 "serverHost": {
287 "$$type": "string"
288 },
289 "serverPort": {
290 "$$type": [
291 "int",
292 "long"
293 ]
294 }
295 }
296 }
297 ]
298 }
299 ]
300 },
301 {
302 "description": "waitQueueSize should be included in connection pool created message when specified",
303 "operations": [
304 {
305 "name": "createEntities",
306 "object": "testRunner",
307 "arguments": {
308 "entities": [
309 {
310 "client": {
311 "id": "client",
312 "observeEvents": [
313 "poolReadyEvent"
314 ],
315 "observeLogMessages": {
316 "connection": "debug"
317 },
318 "uriOptions": {
319 "waitQueueSize": 100
320 }
321 }
322 }
323 ]
324 }
325 },
326 {
327 "name": "waitForEvent",
328 "object": "testRunner",
329 "arguments": {
330 "client": "client",
331 "event": {
332 "poolReadyEvent": {}
333 },
334 "count": 1
335 }
336 }
337 ],
338 "expectLogMessages": [
339 {
340 "client": "client",
341 "messages": [
342 {
343 "level": "debug",
344 "component": "connection",
345 "data": {
346 "message": "Connection pool created",
347 "serverHost": {
348 "$$type": "string"
349 },
350 "serverPort": {
351 "$$type": [
352 "int",
353 "long"
354 ]
355 },
356 "waitQueueSize": 100
357 }
358 },
359 {
360 "level": "debug",
361 "component": "connection",
362 "data": {
363 "message": "Connection pool ready",
364 "serverHost": {
365 "$$type": "string"
366 },
367 "serverPort": {
368 "$$type": [
369 "int",
370 "long"
371 ]
372 }
373 }
374 }
375 ]
376 }
377 ]
378 },
379 {
380 "description": "waitQueueMultiple should be included in connection pool created message when specified",
381 "operations": [
382 {
383 "name": "createEntities",
384 "object": "testRunner",
385 "arguments": {
386 "entities": [
387 {
388 "client": {
389 "id": "client",
390 "observeEvents": [
391 "poolReadyEvent"
392 ],
393 "observeLogMessages": {
394 "connection": "debug"
395 },
396 "uriOptions": {
397 "waitQueueSize": 5
398 }
399 }
400 }
401 ]
402 }
403 },
404 {
405 "name": "waitForEvent",
406 "object": "testRunner",
407 "arguments": {
408 "client": "client",
409 "event": {
410 "poolReadyEvent": {}
411 },
412 "count": 1
413 }
414 }
415 ],
416 "expectLogMessages": [
417 {
418 "client": "client",
419 "messages": [
420 {
421 "level": "debug",
422 "component": "connection",
423 "data": {
424 "message": "Connection pool created",
425 "serverHost": {
426 "$$type": "string"
427 },
428 "serverPort": {
429 "$$type": [
430 "int",
431 "long"
432 ]
433 },
434 "waitQueueMultiple": 5
435 }
436 },
437 {
438 "level": "debug",
439 "component": "connection",
440 "data": {
441 "message": "Connection pool ready",
442 "serverHost": {
443 "$$type": "string"
444 },
445 "serverPort": {
446 "$$type": [
447 "int",
448 "long"
449 ]
450 }
451 }
452 }
453 ]
454 }
455 ]
456 }
457 ]
458 }