You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional examples and documentation can be found under the examples directory and [on the MongoDB Documentation website](https://docs.mongodb.com/drivers/go/).
161
147
162
148
-------------------------
163
-
## Bugs / Feature Reporting
149
+
## Feedback
150
+
151
+
For help with the driver, please post in the [MongoDB Community Forums](https://developer.mongodb.com/community/forums/tag/golang/).
164
152
165
-
New Features and bugs can be reported on jira: https://jira.mongodb.org/browse/GODRIVER
153
+
New features and bugs can be reported on jira: https://jira.mongodb.org/browse/GODRIVER
166
154
167
155
-------------------------
168
156
## Testing / Development
@@ -178,17 +166,17 @@ For example, for a local replica set named `rs1` comprised of three nodes on por
178
166
MONGODB_URI="mongodb://localhost:27017,localhost:27018,localhost:27018/?replicaSet=rs1" make
179
167
```
180
168
181
-
### Testing Auth and SSL
169
+
### Testing Auth and TLS
182
170
183
-
To test authentication and SSL, first set up a MongoDB cluster with auth and SSL configured. Testing authentication requires a user with the `root` role on the `admin` database. The Go Driver repository comes with example certificates in the `data/certificates` directory. These certs can be used for testing. Here is an example command that would run a mongod with SSL correctly configured for tests:
171
+
To test authentication and TLS, first set up a MongoDB cluster with auth and TLS configured. Testing authentication requires a user with the `root` role on the `admin` database. The Go Driver repository comes with example certificates in the `data/certificates` directory. These certs can be used for testing. Here is an example command that would run a mongod with TLS correctly configured for tests:
To run the tests with `make`, set `MONGO_GO_DRIVER_CA_FILE` to the location of the CA file used by the database, set `MONGODB_URI` to the connection string of the server, set `AUTH=auth`, and set `SSL=ssl`. For example:
- The `--sslWeakCertificateValidation` flag is required on the server for the test suite to work correctly.
189
+
- The `--tlsAllowInvalidCertificates` flag is required on the server for the test suite to work correctly.
202
190
- The test suite requires the auth database to be set with `?authSource=admin`, not `/admin`.
203
191
204
192
### Testing Compression
@@ -212,10 +200,9 @@ MONGO_GO_DRIVER_COMPRESSOR=snappy make
212
200
Ensure the [`--networkMessageCompressors` flag](https://docs.mongodb.com/manual/reference/program/mongod/#cmdoption-mongod-networkmessagecompressors) on mongod or mongos includes `zlib` if testing zLib compression.
213
201
214
202
-------------------------
215
-
## Feedback
203
+
## Contribution
216
204
217
-
The MongoDB Go Driver is not feature complete, so any help is appreciated. Check out the [project page](https://jira.mongodb.org/browse/GODRIVER)
218
-
for tickets that need completing. See our [contribution guidelines](CONTRIBUTING.md) for details.
205
+
Check out the [project page](https://jira.mongodb.org/browse/GODRIVER) for tickets that need completing. See our [contribution guidelines](CONTRIBUTING.md) for details.
0 commit comments