{
  "runOn": [
    {
      "minServerVersion": "6.0.0",
      "topology": [
        "replicaset",
        "sharded",
        "load-balanced"
      ]
    }
  ],
  "database_name": "default",
  "collection_name": "default",
  "data": [
    {
      "encryptedUnindexed": {
        "$binary": {
          "base64": "BqvN76sSNJh2EjQSNFZ4kBICTQaVZPWgXp41I7mPV1rLFTtw1tXzjcdSEyxpKKqujlko5TeizkB9hHQ009dVY1+fgIiDcefh+eQrm3CkhQ==",
          "subType": "06"
        }
      }
    }
  ],
  "encrypted_fields": {
    "escCollection": "enxcol_.default.esc",
    "eccCollection": "enxcol_.default.ecc",
    "ecocCollection": "enxcol_.default.ecoc",
    "fields": [
      {
        "keyId": {
          "$binary": {
            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
            "subType": "04"
          }
        },
        "path": "encryptedIndexed",
        "bsonType": "string",
        "queries": {
          "queryType": "equality",
          "contention": {
            "$numberLong": "0"
          }
        }
      },
      {
        "keyId": {
          "$binary": {
            "base64": "q83vqxI0mHYSNBI0VniQEg==",
            "subType": "04"
          }
        },
        "path": "encryptedUnindexed",
        "bsonType": "string"
      }
    ]
  },
  "key_vault_data": [],
  "tests": [
    {
      "description": "FLE2 encrypt fails with mising key",
      "clientOptions": {
        "autoEncryptOpts": {
          "kmsProviders": {
            "local": {
              "key": {
                "$binary": {
                  "base64": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk",
                  "subType": "00"
                }
              }
            }
          }
        }
      },
      "operations": [
        {
          "name": "insertOne",
          "arguments": {
            "document": {
              "_id": 1,
              "encryptedIndexed": "123"
            }
          },
          "result": {
            "errorContains": "not all keys requested were satisfied"
          }
        }
      ]
    },
    {
      "description": "FLE2 decrypt fails with mising key",
      "clientOptions": {
        "autoEncryptOpts": {
          "kmsProviders": {
            "local": {
              "key": {
                "$binary": {
                  "base64": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk",
                  "subType": "00"
                }
              }
            }
          }
        }
      },
      "operations": [
        {
          "name": "find",
          "arguments": {
            "filter": {}
          },
          "result": {
            "errorContains": "not all keys requested were satisfied"
          }
        }
      ]
    }
  ]
}
