...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-string/valid-warnings.yml

Documentation: go.mongodb.org/mongo-driver/testdata/connection-string

     1tests:
     2    -
     3        description: "Unrecognized option keys are ignored"
     4        uri: "mongodb://example.com/?foo=bar"
     5        valid: true
     6        warning: true
     7        hosts:
     8            -
     9                type: "hostname"
    10                host: "example.com"
    11                port: ~
    12        auth: ~
    13        options: ~
    14    -
    15        description: "Unsupported option values are ignored"
    16        uri: "mongodb://example.com/?fsync=ifPossible"
    17        valid: true
    18        warning: true
    19        hosts:
    20            -
    21                type: "hostname"
    22                host: "example.com"
    23                port: ~
    24        auth: ~
    25        options: ~
    26    -
    27        description: "Repeated option keys"
    28        uri: "mongodb://example.com/?replicaSet=test&replicaSet=test"
    29        valid: true
    30        warning: true
    31        hosts:
    32            -
    33                type: "hostname"
    34                host: "example.com"
    35                port: ~
    36        auth: ~
    37        options:
    38            replicaset: "test"
    39    -
    40        description: "Deprecated (or unknown) options are ignored if replacement exists"
    41        uri: "mongodb://example.com/?wtimeout=5&wtimeoutMS=10"
    42        valid: true
    43        warning: true
    44        hosts:
    45            -
    46                type: "hostname"
    47                host: "example.com"
    48                port: ~
    49        auth: ~
    50        options:
    51            wtimeoutms: 10

View as plain text