Skip to content

Commit c2bf5e4

Browse files
PYTHON-5198 Fix test_03_invalid_keyid (#2195) [v4.11] (#2198)
Co-authored-by: Shane Harvey <[email protected]>
1 parent dc73514 commit c2bf5e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/asynchronous/test_encryption.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2982,9 +2982,10 @@ async def test_02_no_fields(self):
29822982
)
29832983

29842984
async def test_03_invalid_keyid(self):
2985+
# checkAuthForCreateCollection can be removed when SERVER-102101 is fixed.
29852986
with self.assertRaisesRegex(
29862987
EncryptedCollectionError,
2987-
"create.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
2988+
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
29882989
):
29892990
await self.client_encryption.create_encrypted_collection(
29902991
database=self.db,

test/test_encryption.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2964,9 +2964,10 @@ def test_02_no_fields(self):
29642964
)
29652965

29662966
def test_03_invalid_keyid(self):
2967+
# checkAuthForCreateCollection can be removed when SERVER-102101 is fixed.
29672968
with self.assertRaisesRegex(
29682969
EncryptedCollectionError,
2969-
"create.encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
2970+
"(create|checkAuthForCreateCollection).encryptedFields.fields.keyId' is the wrong type 'bool', expected type 'binData",
29702971
):
29712972
self.client_encryption.create_encrypted_collection(
29722973
database=self.db,

0 commit comments

Comments
 (0)