File: srv-options.yml

package info (click to toggle)
golang-mongodb-mongo-driver 1.8.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 18,520 kB
  • sloc: perl: 533; ansic: 491; python: 432; makefile: 187; sh: 72
file content (89 lines) | stat: -rw-r--r-- 2,894 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
tests:
    - description: "SRV URI with custom srvServiceName"
      uri: "mongodb+srv://test22.test.build.10gen.cc/?srvServiceName=customname"
      valid: true
      warning: false
      hosts: ~
      auth: ~
      options:
          srvServiceName: "customname"
    - description: "Non-SRV URI with custom srvServiceName"
      uri: "mongodb://example.com/?srvServiceName=customname"
      valid: false
      warning: false
      hosts: ~
      auth: ~
      options: {}
    - description: "SRV URI with srvMaxHosts"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2"
      valid: true
      warning: false
      hosts: ~
      auth: ~
      options:
          srvMaxHosts: 2
    - description: "SRV URI with negative integer for srvMaxHosts"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=-1"
      valid: true
      warning: true
      hosts: ~
      auth: ~
      options: {}
    - description: "SRV URI with invalid type for srvMaxHosts"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=foo"
      valid: true
      warning: true
      hosts: ~
      auth: ~
      options: {}
    - description: "Non-SRV URI with srvMaxHosts"
      uri: "mongodb://example.com/?srvMaxHosts=2"
      valid: false
      warning: false
      hosts: ~
      auth: ~
      options: {}
    # Note: Testing URI validation for srvMaxHosts conflicting with either
    # loadBalanced=true or replicaSet specified via TXT records is covered by
    # the Initial DNS Seedlist Discovery test suite.
    - description: "SRV URI with positive srvMaxHosts and replicaSet"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&replicaSet=foo"
      valid: false
      warning: false
      hosts: ~
      auth: ~
      options: {}
    - description: "SRV URI with positive srvMaxHosts and loadBalanced=true"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&loadBalanced=true"
      valid: false
      warning: false
      hosts: ~
      auth: ~
      options: {}
    - description: "SRV URI with positive srvMaxHosts and loadBalanced=false"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=2&loadBalanced=false"
      valid: true
      warning: false
      hosts: ~
      auth: ~
      options:
          loadBalanced: false
          srvMaxHosts: 2
    - description: "SRV URI with srvMaxHosts=0 and replicaSet"
      uri: "mongodb+srv://test1.test.build.10gen.cc/?srvMaxHosts=0&replicaSet=foo"
      valid: true
      warning: false
      hosts: ~
      auth: ~
      options:
          replicaSet: foo
          srvMaxHosts: 0
    - description: "SRV URI with srvMaxHosts=0 and loadBalanced=true"
      uri: "mongodb+srv://test3.test.build.10gen.cc/?srvMaxHosts=0&loadBalanced=true"
      valid: true
      warning: false
      hosts: ~
      auth: ~
      options:
          loadBalanced: true
          srvMaxHosts: 0