...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/unified/find-allowdiskuse-serverError.json

Documentation: go.mongodb.org/mongo-driver/testdata/crud/unified

     1{
     2  "description": "find-allowdiskuse-serverError",
     3  "schemaVersion": "1.0",
     4  "runOnRequirements": [
     5    {
     6      "minServerVersion": "3.2",
     7      "maxServerVersion": "4.3.0"
     8    }
     9  ],
    10  "createEntities": [
    11    {
    12      "client": {
    13        "id": "client0",
    14        "observeEvents": [
    15          "commandStartedEvent"
    16        ]
    17      }
    18    },
    19    {
    20      "database": {
    21        "id": "database0",
    22        "client": "client0",
    23        "databaseName": "crud-v2"
    24      }
    25    },
    26    {
    27      "collection": {
    28        "id": "collection0",
    29        "database": "database0",
    30        "collectionName": "test_find_allowdiskuse_servererror"
    31      }
    32    }
    33  ],
    34  "tests": [
    35    {
    36      "description": "Find fails when allowDiskUse true is specified against pre 4.4 server (server-side error)",
    37      "operations": [
    38        {
    39          "object": "collection0",
    40          "name": "find",
    41          "arguments": {
    42            "filter": {},
    43            "allowDiskUse": true
    44          },
    45          "expectError": {
    46            "isError": true
    47          }
    48        }
    49      ],
    50      "expectEvents": [
    51        {
    52          "client": "client0",
    53          "events": [
    54            {
    55              "commandStartedEvent": {
    56                "command": {
    57                  "find": "test_find_allowdiskuse_servererror",
    58                  "filter": {},
    59                  "allowDiskUse": true
    60                }
    61              }
    62            }
    63          ]
    64        }
    65      ]
    66    },
    67    {
    68      "description": "Find fails when allowDiskUse false is specified against pre 4.4 server (server-side error)",
    69      "operations": [
    70        {
    71          "object": "collection0",
    72          "name": "find",
    73          "arguments": {
    74            "filter": {},
    75            "allowDiskUse": false
    76          },
    77          "expectError": {
    78            "isError": true
    79          }
    80        }
    81      ],
    82      "expectEvents": [
    83        {
    84          "client": "client0",
    85          "events": [
    86            {
    87              "commandStartedEvent": {
    88                "command": {
    89                  "find": "test_find_allowdiskuse_servererror",
    90                  "filter": {},
    91                  "allowDiskUse": false
    92                }
    93              }
    94            }
    95          ]
    96        }
    97      ]
    98    }
    99  ]
   100}

View as plain text