...

Text file src/go.mongodb.org/mongo-driver/testdata/connection-string/valid-db-with-dotted-name.json

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

     1{
     2  "tests": [
     3    {
     4      "description": "Multiple Unix domain sockets and auth DB resembling a socket (relative path)",
     5      "uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.sock",
     6      "valid": true,
     7      "warning": false,
     8      "hosts": [
     9        {
    10          "type": "unix",
    11          "host": "rel/mongodb-27017.sock",
    12          "port": null
    13        },
    14        {
    15          "type": "unix",
    16          "host": "rel/mongodb-27018.sock",
    17          "port": null
    18        }
    19      ],
    20      "auth": {
    21        "username": null,
    22        "password": null,
    23        "db": "admin.sock"
    24      },
    25      "options": null
    26    },
    27    {
    28      "description": "Multiple Unix domain sockets with auth DB resembling a path (relative path)",
    29      "uri": "mongodb://rel%2Fmongodb-27017.sock,rel%2Fmongodb-27018.sock/admin.shoe",
    30      "valid": true,
    31      "warning": false,
    32      "hosts": [
    33        {
    34          "type": "unix",
    35          "host": "rel/mongodb-27017.sock",
    36          "port": null
    37        },
    38        {
    39          "type": "unix",
    40          "host": "rel/mongodb-27018.sock",
    41          "port": null
    42        }
    43      ],
    44      "auth": {
    45        "username": null,
    46        "password": null,
    47        "db": "admin.shoe"
    48      },
    49      "options": null
    50    },
    51    {
    52      "description": "Multiple Unix domain sockets and auth DB resembling a socket (absolute path)",
    53      "uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.sock",
    54      "valid": true,
    55      "warning": false,
    56      "hosts": [
    57        {
    58          "type": "unix",
    59          "host": "/tmp/mongodb-27017.sock",
    60          "port": null
    61        },
    62        {
    63          "type": "unix",
    64          "host": "/tmp/mongodb-27018.sock",
    65          "port": null
    66        }
    67      ],
    68      "auth": {
    69        "username": null,
    70        "password": null,
    71        "db": "admin.sock"
    72      },
    73      "options": null
    74    },
    75    {
    76      "description": "Multiple Unix domain sockets with auth DB resembling a path (absolute path)",
    77      "uri": "mongodb://%2Ftmp%2Fmongodb-27017.sock,%2Ftmp%2Fmongodb-27018.sock/admin.shoe",
    78      "valid": true,
    79      "warning": false,
    80      "hosts": [
    81        {
    82          "type": "unix",
    83          "host": "/tmp/mongodb-27017.sock",
    84          "port": null
    85        },
    86        {
    87          "type": "unix",
    88          "host": "/tmp/mongodb-27018.sock",
    89          "port": null
    90        }
    91      ],
    92      "auth": {
    93        "username": null,
    94        "password": null,
    95        "db": "admin.shoe"
    96      },
    97      "options": null
    98    }
    99  ]
   100}

View as plain text