| 1 |
|
| 2 |
runOn: |
| 3 |
|
| 4 |
- minServerVersion: "4.9" |
| 5 |
|
| 6 |
database_name: &database_name "sdam-tests" |
| 7 |
collection_name: &collection_name "sdam-minPoolSize-error" |
| 8 |
|
| 9 |
data: [] |
| 10 |
|
| 11 |
tests: |
| 12 |
- description: Network error on minPoolSize background creation |
| 13 |
|
| 14 |
|
| 15 |
failPoint: |
| 16 |
configureFailPoint: failCommand |
| 17 |
mode: { skip: 3 } |
| 18 |
data: |
| 19 |
failCommands: ["hello", "isMaster"] |
| 20 |
appName: SDAMminPoolSizeError |
| 21 |
closeConnection: true |
| 22 |
clientOptions: |
| 23 |
heartbeatFrequencyMS: 10000 |
| 24 |
appname: SDAMminPoolSizeError |
| 25 |
minPoolSize: 10 |
| 26 |
serverSelectionTimeoutMS: 1000 |
| 27 |
directConnection: true |
| 28 |
operations: |
| 29 |
|
| 30 |
- name: waitForEvent |
| 31 |
object: testRunner |
| 32 |
arguments: |
| 33 |
event: PoolReadyEvent |
| 34 |
count: 1 |
| 35 |
|
| 36 |
|
| 37 |
- name: waitForEvent |
| 38 |
object: testRunner |
| 39 |
arguments: |
| 40 |
event: PoolClearedEvent |
| 41 |
count: 1 |
| 42 |
|
| 43 |
- name: waitForEvent |
| 44 |
object: testRunner |
| 45 |
arguments: |
| 46 |
event: ServerMarkedUnknownEvent |
| 47 |
count: 1 |
| 48 |
|
| 49 |
|
| 50 |
- name: runCommand |
| 51 |
object: database |
| 52 |
command_name: ping |
| 53 |
arguments: |
| 54 |
command: |
| 55 |
ping: {} |
| 56 |
error: true |
| 57 |
|
| 58 |
- name: configureFailPoint |
| 59 |
object: testRunner |
| 60 |
arguments: |
| 61 |
failPoint: |
| 62 |
configureFailPoint: failCommand |
| 63 |
mode: off |
| 64 |
|
| 65 |
- name: runCommand |
| 66 |
object: database |
| 67 |
command_name: ping |
| 68 |
arguments: |
| 69 |
command: |
| 70 |
ping: 1 |
| 71 |
error: false |
| 72 |
|
| 73 |
- name: assertEventCount |
| 74 |
object: testRunner |
| 75 |
arguments: |
| 76 |
event: PoolReadyEvent |
| 77 |
count: 2 |