PYTHON-5198 Fix test_03_invalid_keyid (#2195)
(cherry picked from commit 189923f7c3)
This commit is contained in:
parent
dc73514cba
commit
b7236ed1fc
@ -2982,9 +2982,10 @@ class TestAutomaticDecryptionKeys(AsyncEncryptionIntegrationTest):
|
||||
)
|
||||
|
||||
async def test_03_invalid_keyid(self):
|
||||
# checkAuthForCreateCollection can be removed when SERVER-102101 is fixed.
|
||||
with self.assertRaisesRegex(
|
||||
EncryptedCollectionError,
|
||||
"create.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
|
||||
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
|
||||
):
|
||||
await self.client_encryption.create_encrypted_collection(
|
||||
database=self.db,
|
||||
|
||||
@ -2964,9 +2964,10 @@ class TestAutomaticDecryptionKeys(EncryptionIntegrationTest):
|
||||
)
|
||||
|
||||
def test_03_invalid_keyid(self):
|
||||
# checkAuthForCreateCollection can be removed when SERVER-102101 is fixed.
|
||||
with self.assertRaisesRegex(
|
||||
EncryptedCollectionError,
|
||||
"create.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
|
||||
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
|
||||
):
|
||||
self.client_encryption.create_encrypted_collection(
|
||||
database=self.db,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user