Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3269

[pymongocrypt] Fix malformed keyId in mock listCollections and jsonSchemas

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • pymongocrypt-1.3
    • Affects Version/s: None
    • Component/s: pymongocrypt
    • Labels:
      None

      pymongocrypt's test suite mocks mongocryptd and some tests use keyId in the form:

              "encrypt": {
                "keyId": {
                  "$binary": {
                    "base64": "AAAAAAAAAAAAAAAAAAAAAA==",
                    "subType": "04"
                  }
                },
                "type": "string",
                "algorithm": "AEAD_AES_CBC_HMAC_SHA512-Random"
              }
      

      This is malformed. The correct format is:

              "encrypt": {
                "keyId": [
                  {
                    "$binary": {
                      "base64": "AAAAAAAAAAAAAAAAAAAAAA==",
                      "subType": "04"
                    }
                  }
                ],
                "bsonType": "string",
                "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
              }
      

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: