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
|`DOC_DB_USER_NAME`| This is the DocumentDB user. |`documentdb`|
279
+
|`DOC_DB_PASSWORD`| This is the DocumentDB password. |`aSecret`|
280
+
|`DOC_DB_LOCAL_PORT`| This is the port number used locally via an SSH Tunnel. It is recommend to use a different value than the default 27017. |`27019`|
281
+
|`DOC_DB_USER`| This is the user and host of SSH Tunnel EC2 instance. |`[email protected]`|
282
+
|`DOC_DB_HOST`| This is the host of the DocumentDB cluster server. |`docdb-jdbc-literal-test.cluster-abcdefghijk.us-east-2.docdb.amazonaws.com`|
283
+
|`DOC_DB_PRIV_KEY_FILE`| This is the path to the SSH Tunnel private key-pair file. |`~/.ssh/ec2-literal.pem`|
284
+
285
+
### SSH Tunnel
286
+
287
+
1. Ensure the private key file <keypairname>.pem is in the location set by the environment variable
240
288
`DOC_DB_PRIV_KEY_FILE`.
241
-
3. Start an SSH port-forwarding tunnel:
289
+
2. Assuming you have the environment variables setup above, starting an SSH tunnel from the command line should look like this:
- The `-L` flag defines the port forwarded to the remote host and remote port. Adding the `-N` flag means do not
248
296
execute a remote command, you will not get a shell in this case. The `-f` switch instructs SSH to run in the
249
297
background.
250
298
251
-
#### Bypass Testing DocumentDB
299
+
### Enable Integration Testing of Amazon DocumentDB
300
+
301
+
To enable integration testing in the IDE, update the grade property, as intructed below.
302
+
252
303
1. Modify the */gradle.properties* file in the source code and uncomment the following line:
253
-
`runRemoteIntegrationTests=false`
304
+
`runRemoteIntegrationTests=true`
305
+
306
+
### Project Secrets
307
+
308
+
For the purposes of automated integration testing in **GitHub**, this project maintains the value for the environment variables above
309
+
as project secrets. See the workflow file [gradle.yml](https://github.com/aws/amazon-documentdb-jdbc-driver/blob/1edd9e21fdcccfe62d366580702f2904136298e5/.github/workflows/gradle.yml)
254
310
255
311
## Troubleshooting
312
+
256
313
### Issues with JDK
314
+
257
315
1. Confirm project SDK is Java Version 1.8 via the IntelliJ top menu toolbar under
258
316
*File → Project Structure → Platform Settings -> SDK* and reload the JDK home path by browsing to the path and click
259
317
*apply* and *ok*. Restart IntelliJ IDEA.
@@ -277,5 +335,3 @@ class:
277
335
below. Go to EC2 Dashboard → **Network & Security** Group in the left menu → **Security** Group.
278
336
279
337

0 commit comments