...

Text file src/go.mongodb.org/mongo-driver/testdata/server-discovery-and-monitoring/integration/connectTimeoutMS.json

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

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

View as plain text