| 1 |
|
| 2 |
runOn: |
| 3 |
|
| 4 |
- minServerVersion: "4.9" |
| 5 |
|
| 6 |
database_name: &database_name "sdam-tests" |
| 7 |
collection_name: &collection_name "hello-command-error" |
| 8 |
|
| 9 |
data: [] |
| 10 |
|
| 11 |
tests: |
| 12 |
- description: Command error on Monitor handshake |
| 13 |
|
| 14 |
|
| 15 |
failPoint: |
| 16 |
configureFailPoint: failCommand |
| 17 |
mode: { times: 2 } |
| 18 |
data: |
| 19 |
failCommands: ["hello", "isMaster"] |
| 20 |
appName: commandErrorHandshakeTest |
| 21 |
closeConnection: false |
| 22 |
errorCode: 91 |
| 23 |
clientOptions: |
| 24 |
retryWrites: false |
| 25 |
connectTimeoutMS: 250 |
| 26 |
heartbeatFrequencyMS: 500 |
| 27 |
appname: commandErrorHandshakeTest |
| 28 |
operations: |
| 29 |
|
| 30 |
|
| 31 |
- name: waitForEvent |
| 32 |
object: testRunner |
| 33 |
arguments: |
| 34 |
event: ServerMarkedUnknownEvent |
| 35 |
count: 1 |
| 36 |
|
| 37 |
- name: insertMany |
| 38 |
object: collection |
| 39 |
arguments: |
| 40 |
documents: |
| 41 |
- _id: 1 |
| 42 |
- _id: 2 |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
expectations: |
| 58 |
- command_started_event: |
| 59 |
command: |
| 60 |
insert: *collection_name |
| 61 |
documents: |
| 62 |
- _id: 1 |
| 63 |
- _id: 2 |
| 64 |
command_name: insert |
| 65 |
database_name: *database_name |
| 66 |
|
| 67 |
outcome: |
| 68 |
collection: |
| 69 |
data: |
| 70 |
- {_id: 1} |
| 71 |
- {_id: 2} |
| 72 |
|
| 73 |
- description: Command error on Monitor check |
| 74 |
clientOptions: |
| 75 |
retryWrites: false |
| 76 |
connectTimeoutMS: 1000 |
| 77 |
heartbeatFrequencyMS: 500 |
| 78 |
appname: commandErrorCheckTest |
| 79 |
operations: |
| 80 |
|
| 81 |
- name: insertMany |
| 82 |
object: collection |
| 83 |
arguments: |
| 84 |
documents: |
| 85 |
- _id: 1 |
| 86 |
- _id: 2 |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
- name: configureFailPoint |
| 92 |
object: testRunner |
| 93 |
arguments: |
| 94 |
failPoint: |
| 95 |
configureFailPoint: failCommand |
| 96 |
mode: { times: 4 } |
| 97 |
data: |
| 98 |
failCommands: ["hello", "isMaster"] |
| 99 |
appName: commandErrorCheckTest |
| 100 |
closeConnection: false |
| 101 |
blockConnection: true |
| 102 |
blockTimeMS: 750 |
| 103 |
errorCode: 91 |
| 104 |
|
| 105 |
|
| 106 |
- name: waitForEvent |
| 107 |
object: testRunner |
| 108 |
arguments: |
| 109 |
event: ServerMarkedUnknownEvent |
| 110 |
count: 1 |
| 111 |
- name: waitForEvent |
| 112 |
object: testRunner |
| 113 |
arguments: |
| 114 |
event: PoolClearedEvent |
| 115 |
count: 1 |
| 116 |
|
| 117 |
- name: insertMany |
| 118 |
object: collection |
| 119 |
arguments: |
| 120 |
documents: |
| 121 |
- _id: 3 |
| 122 |
- _id: 4 |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
expectations: |
| 128 |
- command_started_event: |
| 129 |
command: |
| 130 |
insert: *collection_name |
| 131 |
documents: |
| 132 |
- _id: 1 |
| 133 |
- _id: 2 |
| 134 |
command_name: insert |
| 135 |
database_name: *database_name |
| 136 |
- command_started_event: |
| 137 |
command: |
| 138 |
insert: *collection_name |
| 139 |
documents: |
| 140 |
- _id: 3 |
| 141 |
- _id: 4 |
| 142 |
command_name: insert |
| 143 |
database_name: *database_name |
| 144 |
|
| 145 |
outcome: |
| 146 |
collection: |
| 147 |
data: |
| 148 |
- {_id: 1} |
| 149 |
- {_id: 2} |
| 150 |
- {_id: 3} |
| 151 |
- {_id: 4} |