{
  "runOn": [
    {
      "minServerVersion": "7.0.0",
      "topology": [
        "replicaset",
        "sharded",
        "load-balanced"
      ],
      "maxServerVersion": "7.99.99"
    }
  ],
  "database_name": "default",
  "collection_name": "default",
  "data": [],
  "encrypted_fields": {
    "fields": [
      {
        "keyId": {
          "$binary": {
            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
            "subType": "04"
          }
        },
        "path": "encryptedDoubleNoPrecision",
        "bsonType": "double",
        "queries": {
          "queryType": "rangePreview",
          "contention": {
            "$numberLong": "0"
          },
          "sparsity": {
            "$numberLong": "1"
          }
        }
      }
    ]
  },
  "key_vault_data": [
    {
      "_id": {
        "$binary": {
          "base64": "EjRWeBI0mHYSNBI0VniQEg==",
          "subType": "04"
        }
      },
      "keyMaterial": {
        "$binary": {
          "base64": "sHe0kz57YW7v8g9VP9sf/+K1ex4JqKc5rf/URX3n3p8XdZ6+15uXPaSayC6adWbNxkFskuMCOifDoTT+rkqMtFkDclOy884RuGGtUysq3X7zkAWYTKi8QAfKkajvVbZl2y23UqgVasdQu3OVBQCrH/xY00nNAs/52e958nVjBuzQkSb1T8pKJAyjZsHJ60+FtnfafDZSTAIBJYn7UWBCwQ==",
          "subType": "00"
        }
      },
      "creationDate": {
        "$date": {
          "$numberLong": "1648914851981"
        }
      },
      "updateDate": {
        "$date": {
          "$numberLong": "1648914851981"
        }
      },
      "status": {
        "$numberInt": "0"
      },
      "masterKey": {
        "provider": "local"
      }
    }
  ],
  "tests": [
    {
      "description": "FLE2 Range Double. Delete.",
      "clientOptions": {
        "autoEncryptOpts": {
          "kmsProviders": {
            "local": {
              "key": {
                "$binary": {
                  "base64": "Mng0NCt4ZHVUYUJCa1kxNkVyNUR1QURhZ2h2UzR2d2RrZzh0cFBwM3R6NmdWMDFBMUN3YkQ5aXRRMkhGRGdQV09wOGVNYUMxT2k3NjZKelhaQmRCZGJkTXVyZG9uSjFk",
                  "subType": "00"
                }
              }
            }
          }
        }
      },
      "operations": [
        {
          "name": "insertOne",
          "arguments": {
            "document": {
              "_id": 0,
              "encryptedDoubleNoPrecision": {
                "$numberDouble": "0"
              }
            }
          }
        },
        {
          "name": "insertOne",
          "arguments": {
            "document": {
              "_id": 1,
              "encryptedDoubleNoPrecision": {
                "$numberDouble": "1"
              }
            }
          }
        },
        {
          "name": "deleteOne",
          "arguments": {
            "filter": {
              "encryptedDoubleNoPrecision": {
                "$gt": {
                  "$numberDouble": "0"
                }
              }
            }
          },
          "result": {
            "deletedCount": 1
          }
        }
      ],
      "expectations": [
        {
          "command_started_event": {
            "command": {
              "listCollections": 1,
              "filter": {
                "name": "default"
              }
            },
            "command_name": "listCollections"
          }
        },
        {
          "command_started_event": {
            "command": {
              "find": "datakeys",
              "filter": {
                "$or": [
                  {
                    "_id": {
                      "$in": [
                        {
                          "$binary": {
                            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
                            "subType": "04"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "keyAltNames": {
                      "$in": []
                    }
                  }
                ]
              },
              "$db": "keyvault",
              "readConcern": {
                "level": "majority"
              }
            },
            "command_name": "find"
          }
        },
        {
          "command_started_event": {
            "command": {
              "insert": "default",
              "documents": [
                {
                  "_id": 0,
                  "encryptedDoubleNoPrecision": {
                    "$$type": "binData"
                  }
                }
              ],
              "ordered": true,
              "encryptionInformation": {
                "type": 1,
                "schema": {
                  "default.default": {
                    "escCollection": "enxcol_.default.esc",
                    "ecocCollection": "enxcol_.default.ecoc",
                    "fields": [
                      {
                        "keyId": {
                          "$binary": {
                            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
                            "subType": "04"
                          }
                        },
                        "path": "encryptedDoubleNoPrecision",
                        "bsonType": "double",
                        "queries": {
                          "queryType": "rangePreview",
                          "contention": {
                            "$numberLong": "0"
                          },
                          "sparsity": {
                            "$numberLong": "1"
                          }
                        }
                      }
                    ]
                  }
                }
              }
            },
            "command_name": "insert"
          }
        },
        {
          "command_started_event": {
            "command": {
              "insert": "default",
              "documents": [
                {
                  "_id": 1,
                  "encryptedDoubleNoPrecision": {
                    "$$type": "binData"
                  }
                }
              ],
              "ordered": true,
              "encryptionInformation": {
                "type": 1,
                "schema": {
                  "default.default": {
                    "escCollection": "enxcol_.default.esc",
                    "ecocCollection": "enxcol_.default.ecoc",
                    "fields": [
                      {
                        "keyId": {
                          "$binary": {
                            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
                            "subType": "04"
                          }
                        },
                        "path": "encryptedDoubleNoPrecision",
                        "bsonType": "double",
                        "queries": {
                          "queryType": "rangePreview",
                          "contention": {
                            "$numberLong": "0"
                          },
                          "sparsity": {
                            "$numberLong": "1"
                          }
                        }
                      }
                    ]
                  }
                }
              }
            },
            "command_name": "insert"
          }
        },
        {
          "command_started_event": {
            "command": {
              "delete": "default",
              "deletes": [
                {
                  "q": {
                    "encryptedDoubleNoPrecision": {
                      "$gt": {
                        "$binary": {
                          "base64": "[encoded data, 12472 characters]",
                          "subType": "06"
                        }
                      }
                    }
                  },
                  "limit": 1
                }
              ],
              "ordered": true,
              "encryptionInformation": {
                "type": 1,
                "schema": {
                  "default.default": {
                    "escCollection": "enxcol_.default.esc",
                    "ecocCollection": "enxcol_.default.ecoc",
                    "fields": [
                      {
                        "keyId": {
                          "$binary": {
                            "base64": "EjRWeBI0mHYSNBI0VniQEg==",
                            "subType": "04"
                          }
                        },
                        "path": "encryptedDoubleNoPrecision",
                        "bsonType": "double",
                        "queries": {
                          "queryType": "rangePreview",
                          "contention": {
                            "$numberLong": "0"
                          },
                          "sparsity": {
                            "$numberLong": "1"
                          }
                        }
                      }
                    ]
                  }
                }
              }
            },
            "command_name": "delete"
          }
        }
      ],
      "outcome": {
        "collection": {
          "data": [
            {
              "_id": 0,
              "encryptedDoubleNoPrecision": {
                "$$type": "binData"
              },
              "__safeContent__": [
                {
                  "$binary": {
                    "base64": "5nRutVIyq7URVOVtbE4vM01APSIajAVnsShMwjBlzkM=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "6YrBn2ofIw1b5ooakrLOwF41BWrps8OO0H9WH4/rtlE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "n+XAuFnP8Dov9TnhGFxNx0K/MnVM9WbJ7RouEu0ndO0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "yRXojuVdn5GQtD97qYlaCL6cOLmZ7Cvcb3wFjkLUIdM=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "DuIkdRPITRs55I4SZmgomAHCIsDQmXRhW8+MOznkzSk=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "SsBk+Et1lTbU+QRPx+xyJ/jMkmfG+QCvQEpip2YYrzA=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "crCIzOd8KhHvvUlX7M1v9bhvU4pLdTc+X2SuqoKU5Ek=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "YOWdCw4UrqnxkAaVjqmC4sKQDMVMHEpFGnlxpxdaU6E=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "M3SShp81Ff8tQ632qKbv9MUcN6wjDaBReI0VXNu6Xh4=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "gzHlSPxpM0hT75kQvWFzGlOxKvDoiKQZOr19V6l2zXI=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "s3JnppOGYw9SL2Q1kMAZs948v2F5PrpXjGei/HioDWs=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "cG6+3Gk/zEH68P/uuuwiAUVCuyJwa1LeV+t29FlPPAo=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "dupdvR3AyJtM+g9NDKiaLVOtGca387JQp8w+V03m7Ig=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "JqEQc5svj2jTvZ6LLA5ivE+kTb/0aRemSEmxk4G7Zrg=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "szcXXXKnob+p3SoM4yED2R920LeJ7cVsclPMFTe4CeI=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "o1QoGVXmuBdHwHm7aCtGMlMVKrjFdYvJXpoq6uhIAZ0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "Jfm5wPlqqLCJRGQIqRq2NGmpn7s0Vrih2H3YAOoI2YU=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "zMHLb8ARbsYo8Ld05bqnGFf1Usha6EGb8QKwdSAyps0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "yQdtq9lh5pugL7/i0Bj/PuZUUBUIzf+7wj1rl5y736w=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "wGWVZdO7qIuyDg/BqDgqjgoQ02h5YYgwXQB1oCin2NE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "by9HMLj6NTEpgztZ5HSN6GxImkXPcaFINYDzgZY33X8=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "tWo0vbasi7bXmn/MsOx13VC1IsWtpx/nYp0uj4iMzdA=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "tQQpndUYd5O87lOtrGjH3wl9VsOK0ray7RMasL90sBM=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "cQjXEDCMsOpKLLf+vlTgIHA+cbSJdzqhbSX9Wvh95aA=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "7yMpU48IxK9SzP2cx3VnTownGEwFmeFofuuFT97SuuY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "kSOx1kz0CmBgzKQHZlo65ZUY1DIv9A99JRm+Us2y6Ew=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "ubQpdPBe6/xvtr+AcXdfYLSvYCR4ot0tivehkCsupb4=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "xal+iCJ6FTefRQToyoNksc9NCZShyn04NDGi4IYrcoM=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "d7jU4iOK50xHxlkSifcxlZFCM46TSgQzoYivxG3HNLY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "tJvl2nsBLBVzL3pp6sKWCL4UXeh3q/roYBJjSb74ve0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "OIUCaKRvIx9t1w6Hxlz1IcQTdPNCfdRNwnnTm10W+X0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "A9tvzsiElotOUVIB4CqfQp9mAwqvTM35YkmAR170aHA=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "lI8gpK7hpb7c9x4RQugsxMnQay5LZJmwslZdvMx/dcE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "dNCzh40U0XvdKnSDi3HRQOWQftEsDVqc4uUvsVFGoq8=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "IP+iwEBWBwVVZIdpaMu8k5+soFCz+TZkYn3drKZ9grE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "pnqyh6e0y5svHkJDShlN9CHV0WvMBE4QbtJpQw5ZCXc=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "elEl42tbVDoRTLjAhZUFEtXiut4b3PVhg/1ZLZSQdtE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "vHuu2FxwclMHqyE6JBYbTYgbEkB0dqb/JuaxsvfwsmY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "xTf7NCe3Gf8QpE78HR5OknlLTKfs9J+RN9UZpH6fnso=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "XiWSasRnJAulGR6+LCVD3mwRObXylqYWR9jvpywq12c=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "MZMxEQ5ikx0PG1YFIExv0UnTZogsvgeOEZTpzvBDn4w=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "yZMyMZBDrWbAhvnic7vvIYhmO9m5H2iuv0c8KNZrBzY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "xxM14hTPY5j0vvcK2C7YAEjzdsfUTFHozHC0hEo1bxI=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "+01rqR1xVwkpGXcstbk1ItJqFVjH6Q8MGxEN3Cm9Y1A=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "xOpLV0Z2VTRJ3iWtnWZcsyjXubTIkYWo31cO+HV1o1k=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "BWUOLqgLBqc5NwxVlSV5H3KFQPXbCp7mdo+jF+8cJqY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "fuQb1S6xZDGlrEbK+kI23aL53PP1PVNwqICnZNt9Yzg=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "SfscnoibFttahLdPVC4Ee+47ewGFKpDSU7M6HX19bKE=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "rpSW2awybNVeKtat91VFxqbINoTfNhPfQAu+d73Xtf8=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "9M/CP9ccOIIj2LLFmE0GFDO0Ban2wsNalEXfM6+h+1s=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "WrEMG49l1ye4MhXs5ZS9tz8P6h+hDvthIg/2wW9ne1Q=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "ImNhbfeyfH8qIEeA5ic0s3dAQBdzzTBS+CPsNih9vZ0=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "dWP33YDSn04UKJN2ogh2Rui0iW/0q2y18OCDRVcfyoo=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "lYv0isAtfGh6H9tdp3cp2eHU7q2J+uk7QrgcxtK3w7Y=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "VGMoamB/+7zTOYcY/pqJc96xlv2PdW4hwsIAEIslTDQ=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "yNeBWMF7BnD9wVwz2PgJsvWr77QiVvvWUvJF0+fqBug=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "SfpvObJ+tJBXSvqeN7vlOfmhYign635lciYAJIjUtY8=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "dsen4NqjzVGjpjufiTMs3+gqeD09EbnuogPgxrJECwg=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "pxCWVM3sn19NsFEpgHbgLa+PmYlhN3mMiP0Wk8kJhYw=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "q11KNvJszjYIB9n9HcC+N4uz11a3eRj1L3BH9scKMDQ=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "A1PmkgcEToWh1JiVWE6mI5jUu7poxWWuCUt/cgRUUDc=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "qJo3Hu4PJeanL7XEaWXO/n3YsodhZyd+MJOOmB9Kpd8=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "BkBKLO8URFscfRY9Bav/1+L9mLohDgNr/MkZtGiraIs=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "rZq5WA3Hx3xthOyHAJXK//f8pE2qbz7YKu3TIMp9GFY=",
                    "subType": "00"
                  }
                },
                {
                  "$binary": {
                    "base64": "X07a/Lm80p5xd4RFs1dNmw+90tmPDPdGiAKVZkxd4zY=",
                    "subType": "00"
                  }
                }
              ]
            }
          ]
        }
      }
    }
  ]
}
