{
  "runOn": [
    {
      "minServerVersion": "3.2",
      "maxServerVersion": "4.3.0"
    }
  ],
  "collection_name": "test_find_allowdiskuse_servererror",
  "tests": [
    {
      "description": "Find fails when allowDiskUse true is specified against pre 4.4 server (server-side error)",
      "operations": [
        {
          "object": "collection",
          "name": "find",
          "arguments": {
            "filter": {},
            "allowDiskUse": true
          },
          "error": true
        }
      ],
      "expectations": [
        {
          "command_started_event": {
            "command": {
              "find": "test_find_allowdiskuse_servererror",
              "filter": {},
              "allowDiskUse": true
            }
          }
        }
      ]
    },
    {
      "description": "Find fails when allowDiskUse false is specified against pre 4.4 server (server-side error)",
      "operations": [
        {
          "object": "collection",
          "name": "find",
          "arguments": {
            "filter": {},
            "allowDiskUse": false
          },
          "error": true
        }
      ],
      "expectations": [
        {
          "command_started_event": {
            "command": {
              "find": "test_find_allowdiskuse_servererror",
              "filter": {},
              "allowDiskUse": false
            }
          }
        }
      ]
    }
  ]
}
