...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/integration/auth-network-timeout-error.json

Documentation: go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/integration

     1{
     2  "runOn": [
     3    {
     4      "minServerVersion": "4.4",
     5      "authEnabled": true
     6    }
     7  ],
     8  "database_name": "sdam-tests",
     9  "collection_name": "auth-network-timeout-error",
    10  "data": [
    11    {
    12      "_id": 1
    13    },
    14    {
    15      "_id": 2
    16    }
    17  ],
    18  "tests": [
    19    {
    20      "description": "Reset server and pool after network timeout error during authentication",
    21      "failPoint": {
    22        "configureFailPoint": "failCommand",
    23        "mode": {
    24          "times": 1
    25        },
    26        "data": {
    27          "failCommands": [
    28            "saslContinue"
    29          ],
    30          "blockConnection": true,
    31          "blockTimeMS": 500,
    32          "appName": "authNetworkTimeoutErrorTest"
    33        }
    34      },
    35      "clientOptions": {
    36        "retryWrites": false,
    37        "appname": "authNetworkTimeoutErrorTest",
    38        "connectTimeoutMS": 250,
    39        "socketTimeoutMS": 250
    40      },
    41      "operations": [
    42        {
    43          "name": "insertMany",
    44          "object": "collection",
    45          "arguments": {
    46            "documents": [
    47              {
    48                "_id": 3
    49              },
    50              {
    51                "_id": 4
    52              }
    53            ]
    54          },
    55          "error": true
    56        },
    57        {
    58          "name": "waitForEvent",
    59          "object": "testRunner",
    60          "arguments": {
    61            "event": "ServerMarkedUnknownEvent",
    62            "count": 1
    63          }
    64        },
    65        {
    66          "name": "waitForEvent",
    67          "object": "testRunner",
    68          "arguments": {
    69            "event": "PoolClearedEvent",
    70            "count": 1
    71          }
    72        },
    73        {
    74          "name": "insertMany",
    75          "object": "collection",
    76          "arguments": {
    77            "documents": [
    78              {
    79                "_id": 5
    80              },
    81              {
    82                "_id": 6
    83              }
    84            ]
    85          }
    86        },
    87        {
    88          "name": "assertEventCount",
    89          "object": "testRunner",
    90          "arguments": {
    91            "event": "ServerMarkedUnknownEvent",
    92            "count": 1
    93          }
    94        },
    95        {
    96          "name": "assertEventCount",
    97          "object": "testRunner",
    98          "arguments": {
    99            "event": "PoolClearedEvent",
   100            "count": 1
   101          }
   102        }
   103      ],
   104      "expectations": [
   105        {
   106          "command_started_event": {
   107            "command": {
   108              "insert": "auth-network-timeout-error",
   109              "documents": [
   110                {
   111                  "_id": 5
   112                },
   113                {
   114                  "_id": 6
   115                }
   116              ]
   117            },
   118            "command_name": "insert",
   119            "database_name": "sdam-tests"
   120          }
   121        }
   122      ],
   123      "outcome": {
   124        "collection": {
   125          "data": [
   126            {
   127              "_id": 1
   128            },
   129            {
   130              "_id": 2
   131            },
   132            {
   133              "_id": 5
   134            },
   135            {
   136              "_id": 6
   137            }
   138          ]
   139        }
   140      }
   141    }
   142  ]
   143}

View as plain text