4
4
5
5
### Test 1: Test that environment metadata is properly captured
6
6
7
- Drivers that capture values for ` client.env ` should test that a connection and hello command succeeds in the presence of
7
+ Drivers that capture values for ` client.env ` should test that a connection and hello command succeed in the presence of
8
8
the following sets of environment variables:
9
9
10
10
1 . Valid AWS
@@ -76,7 +76,7 @@ the following sets of environment variables:
76
76
77
77
### Test 2: Test that the driver accepts an arbitrary auth mechanism
78
78
79
- 1 . Mock the server response in a way that ` saslSupportedMechs ` array in the ` hello ` command response contains an
79
+ 1 . Mock the server response in a way that the ` saslSupportedMechs ` array in the ` hello ` command response contains an
80
80
arbitrary string.
81
81
82
82
2 . Create and connect a ` Connection ` object that connects to the server that returns the mocked response.
@@ -93,8 +93,8 @@ test-only backdoor mechanism to intercept the handshake `hello` command for veri
93
93
Drivers should verify that metadata provided after ` MongoClient ` initialization is appended, not replaced, and is
94
94
visible in the ` hello ` command of new connections.
95
95
96
- There are multiple test cases parameterized with ` DriverInfoOptions ` to be appended after ` MongoClient ` initialization.
97
- Before each test case, perform the setup.
96
+ There are multiple test cases with ` DriverInfoOptions ` parameters to be appended after ` MongoClient ` initialization.
97
+ Before each test case, perform the following setup.
98
98
99
99
#### Setup
100
100
@@ -124,6 +124,7 @@ Before each test case, perform the setup.
124
124
| 2 | framework | 2.0 | null |
125
125
| 3 | framework | null | Framework Platform |
126
126
| 4 | framework | null | null |
127
+ | 5 | null | null | null |
127
128
128
129
#### Running a test case
129
130
@@ -148,15 +149,15 @@ Before each test case, perform the setup.
148
149
149
150
- All other subfields in the ` client ` document remain unchanged from ` initialClientMetadata ` .
150
151
151
- ## Test 2: Multiple Successive Metadata Updates
152
+ ### Test 2: Multiple Successive Metadata Updates
152
153
153
154
Drivers should verify that after ` MongoClient ` initialization, metadata can be updated multiple times, not replaced, and
154
155
is visible in the ` hello ` command of new connections.
155
156
156
- There are multiple test cases parameterized with ` DriverInfoOptions ` to be appended after a previous metadata update.
157
- Before each test case, perform the setup.
157
+ There are multiple test cases with ` DriverInfoOptions ` parameter to be appended after a previous metadata update. Before
158
+ each test case, perform the following setup.
158
159
159
- ### Setup
160
+ #### Setup
160
161
161
162
1 . Create a ` MongoClient ` instance with:
162
163
@@ -184,6 +185,7 @@ Before each test case, perform the setup.
184
185
| 2 | framework | 2.0 | null |
185
186
| 3 | framework | null | Framework Platform |
186
187
| 4 | framework | null | null |
188
+ | 5 | null | null | null |
187
189
188
190
#### Running a test case
189
191
0 commit comments