| 1 |
tests: |
| 2 |
- description: "SRV URI with custom srvServiceName" |
| 3 |
uri: "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname" |
| 4 |
valid: true |
| 5 |
warning: false |
| 6 |
hosts: ~ |
| 7 |
auth: ~ |
| 8 |
options: |
| 9 |
srvServiceName: "customname" |
| 10 |
- description: "Non-SRV URI with custom srvServiceName" |
| 11 |
uri: "mongodb://example.com/?srvServiceName=customname" |
| 12 |
valid: false |
| 13 |
warning: false |
| 14 |
hosts: ~ |
| 15 |
auth: ~ |
| 16 |
options: {} |
| 17 |
- description: "SRV URI with srvMaxHosts" |
| 18 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2" |
| 19 |
valid: true |
| 20 |
warning: false |
| 21 |
hosts: ~ |
| 22 |
auth: ~ |
| 23 |
options: |
| 24 |
srvMaxHosts: 2 |
| 25 |
- description: "SRV URI with negative integer for srvMaxHosts" |
| 26 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=-1" |
| 27 |
valid: true |
| 28 |
warning: true |
| 29 |
hosts: ~ |
| 30 |
auth: ~ |
| 31 |
options: {} |
| 32 |
- description: "SRV URI with invalid type for srvMaxHosts" |
| 33 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=foo" |
| 34 |
valid: true |
| 35 |
warning: true |
| 36 |
hosts: ~ |
| 37 |
auth: ~ |
| 38 |
options: {} |
| 39 |
- description: "Non-SRV URI with srvMaxHosts" |
| 40 |
uri: "mongodb://example.com/?srvMaxHosts=2" |
| 41 |
valid: false |
| 42 |
warning: false |
| 43 |
hosts: ~ |
| 44 |
auth: ~ |
| 45 |
options: {} |
| 46 |
# Note: Testing URI validation for srvMaxHosts conflicting with either |
| 47 |
# loadBalanced=true or replicaSet specified via TXT records is covered by |
| 48 |
# the Initial DNS Seedlist Discovery test suite. |
| 49 |
- description: "SRV URI with positive srvMaxHosts and replicaSet" |
| 50 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&replicaSet=foo" |
| 51 |
valid: false |
| 52 |
warning: false |
| 53 |
hosts: ~ |
| 54 |
auth: ~ |
| 55 |
options: {} |
| 56 |
- description: "SRV URI with positive srvMaxHosts and loadBalanced=true" |
| 57 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&loadBalanced=true" |
| 58 |
valid: false |
| 59 |
warning: false |
| 60 |
hosts: ~ |
| 61 |
auth: ~ |
| 62 |
options: {} |
| 63 |
- description: "SRV URI with positive srvMaxHosts and loadBalanced=false" |
| 64 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&loadBalanced=false" |
| 65 |
valid: true |
| 66 |
warning: false |
| 67 |
hosts: ~ |
| 68 |
auth: ~ |
| 69 |
options: |
| 70 |
loadBalanced: false |
| 71 |
srvMaxHosts: 2 |
| 72 |
- description: "SRV URI with srvMaxHosts=0 and replicaSet" |
| 73 |
uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=0&replicaSet=foo" |
| 74 |
valid: true |
| 75 |
warning: false |
| 76 |
hosts: ~ |
| 77 |
auth: ~ |
| 78 |
options: |
| 79 |
replicaSet: foo |
| 80 |
srvMaxHosts: 0 |
| 81 |
- description: "SRV URI with srvMaxHosts=0 and loadBalanced=true" |
| 82 |
uri: "mongodb+srv://test3.test.build.10gen.cc/?srvMaxHosts=0&loadBalanced=true" |
| 83 |
valid: true |
| 84 |
warning: false |
| 85 |
hosts: ~ |
| 86 |
auth: ~ |
| 87 |
options: |
| 88 |
loadBalanced: true |
| 89 |
srvMaxHosts: 0 |