...

Text file src/go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail/assertNumberConnectionsCheckedOut.json

Documentation: go.mongodb.org/mongo-driver/testdata/unified-test-format/valid-fail

     1{
     2  "description": "assertNumberConnectionsCheckedOut",
     3  "schemaVersion": "1.3",
     4  "createEntities": [
     5    {
     6      "client": {
     7        "id": "client0",
     8        "useMultipleMongoses": true
     9      }
    10    }
    11  ],
    12  "tests": [
    13    {
    14      "description": "operation fails if client field is not specified",
    15      "operations": [
    16        {
    17          "name": "assertNumberConnectionsCheckedOut",
    18          "object": "testRunner",
    19          "arguments": {
    20            "connections": 1
    21          }
    22        }
    23      ]
    24    },
    25    {
    26      "description": "operation fails if connections field is not specified",
    27      "operations": [
    28        {
    29          "name": "assertNumberConnectionsCheckedOut",
    30          "object": "testRunner",
    31          "arguments": {
    32            "client": "client0"
    33          }
    34        }
    35      ]
    36    },
    37    {
    38      "description": "operation fails if client entity does not exist",
    39      "operations": [
    40        {
    41          "name": "assertNumberConnectionsCheckedOut",
    42          "object": "testRunner",
    43          "arguments": {
    44            "client": "client1"
    45          }
    46        }
    47      ]
    48    },
    49    {
    50      "description": "operation fails if number of connections is incorrect",
    51      "operations": [
    52        {
    53          "name": "assertNumberConnectionsCheckedOut",
    54          "object": "testRunner",
    55          "arguments": {
    56            "client": "client0",
    57            "connections": 1
    58          }
    59        }
    60      ]
    61    }
    62  ]
    63}

View as plain text