@@ -876,6 +876,8 @@ async def test_views_are_prohibited(self):
876876
877877
878878class TestCorpus (AsyncEncryptionIntegrationTest ):
879+ # PYTHON-5708: Encryption tests sending large payloads fail on some mongocryptd versions.
880+ @async_client_context .require_version_max (6 , 99 )
879881 @unittest .skipUnless (any (AWS_CREDS .values ()), "AWS environment credentials are not set" )
880882 async def asyncSetUp (self ):
881883 await super ().asyncSetUp ()
@@ -1022,14 +1024,12 @@ async def _test_corpus(self, opts):
10221024 else :
10231025 self .assertEqual (value ["value" ], corpus [key ]["value" ], key )
10241026
1025- @pytest .mark .skip (reason = "PYTHON-5708" )
10261027 async def test_corpus (self ):
10271028 opts = AutoEncryptionOpts (
10281029 self .kms_providers (), "keyvault.datakeys" , kms_tls_options = DEFAULT_KMS_TLS
10291030 )
10301031 await self ._test_corpus (opts )
10311032
1032- @pytest .mark .skip (reason = "PYTHON-5708" )
10331033 async def test_corpus_local_schema (self ):
10341034 # Configure the encrypted field via the local schema_map option.
10351035 schemas = {"db.coll" : self .fix_up_schema (json_data ("corpus" , "corpus-schema.json" ))}
@@ -1054,6 +1054,8 @@ class TestBsonSizeBatches(AsyncEncryptionIntegrationTest):
10541054 client_encrypted : AsyncMongoClient
10551055 listener : OvertCommandListener
10561056
1057+ # PYTHON-5708: Encryption tests sending large payloads fail on some mongocryptd versions.
1058+ @async_client_context .require_version_max (6 , 99 )
10571059 async def asyncSetUp (self ):
10581060 await super ().asyncSetUp ()
10591061 db = async_client_context .client .db
@@ -1111,7 +1113,6 @@ async def test_03_bulk_batch_split(self):
11111113 len ([c for c in self .listener .started_command_names () if c == "insert" ]), 2
11121114 )
11131115
1114- @pytest .mark .skip (reason = "PYTHON-5708" )
11151116 async def test_04_bulk_batch_split (self ):
11161117 limits_doc = json_data ("limits" , "limits-doc.json" )
11171118 doc1 = {"_id" : "encryption_exceeds_2mib_1" , "unencrypted" : "a" * (_2_MiB - 2000 )}
@@ -1132,7 +1133,6 @@ async def test_05_insert_succeeds_just_under_16MiB(self):
11321133 doc ["_id" ] = "under_16mib_bulk"
11331134 await self .coll_encrypted .bulk_write ([InsertOne (doc )])
11341135
1135- @pytest .mark .skip (reason = "PYTHON-5708" )
11361136 async def test_06_insert_fails_over_16MiB (self ):
11371137 limits_doc = json_data ("limits" , "limits-doc.json" )
11381138 doc = {"_id" : "encryption_exceeds_16mib" , "unencrypted" : "a" * (_16_MiB - 2000 )}
0 commit comments