...

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

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

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

View as plain text