Skip to content

Commit 68215d0

Browse files
committed
fixup skips
1 parent f2471d0 commit 68215d0

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/asynchronous/test_encryption.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,8 @@ async def test_views_are_prohibited(self):
876876

877877

878878
class 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)}

test/test_encryption.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ def test_views_are_prohibited(self):
872872

873873

874874
class TestCorpus(EncryptionIntegrationTest):
875+
# PYTHON-5708: Encryption tests sending large payloads fail on some mongocryptd versions.
876+
@client_context.require_version_max(6, 99)
875877
@unittest.skipUnless(any(AWS_CREDS.values()), "AWS environment credentials are not set")
876878
def setUp(self):
877879
super().setUp()
@@ -1018,14 +1020,12 @@ def _test_corpus(self, opts):
10181020
else:
10191021
self.assertEqual(value["value"], corpus[key]["value"], key)
10201022

1021-
@pytest.mark.skip(reason="PYTHON-5708")
10221023
def test_corpus(self):
10231024
opts = AutoEncryptionOpts(
10241025
self.kms_providers(), "keyvault.datakeys", kms_tls_options=DEFAULT_KMS_TLS
10251026
)
10261027
self._test_corpus(opts)
10271028

1028-
@pytest.mark.skip(reason="PYTHON-5708")
10291029
def test_corpus_local_schema(self):
10301030
# Configure the encrypted field via the local schema_map option.
10311031
schemas = {"db.coll": self.fix_up_schema(json_data("corpus", "corpus-schema.json"))}
@@ -1050,6 +1050,8 @@ class TestBsonSizeBatches(EncryptionIntegrationTest):
10501050
client_encrypted: MongoClient
10511051
listener: OvertCommandListener
10521052

1053+
# PYTHON-5708: Encryption tests sending large payloads fail on some mongocryptd versions.
1054+
@client_context.require_version_max(6, 99)
10531055
def setUp(self):
10541056
super().setUp()
10551057
db = client_context.client.db
@@ -1107,7 +1109,6 @@ def test_03_bulk_batch_split(self):
11071109
len([c for c in self.listener.started_command_names() if c == "insert"]), 2
11081110
)
11091111

1110-
@pytest.mark.skip(reason="PYTHON-5708")
11111112
def test_04_bulk_batch_split(self):
11121113
limits_doc = json_data("limits", "limits-doc.json")
11131114
doc1 = {"_id": "encryption_exceeds_2mib_1", "unencrypted": "a" * (_2_MiB - 2000)}
@@ -1128,7 +1129,6 @@ def test_05_insert_succeeds_just_under_16MiB(self):
11281129
doc["_id"] = "under_16mib_bulk"
11291130
self.coll_encrypted.bulk_write([InsertOne(doc)])
11301131

1131-
@pytest.mark.skip(reason="PYTHON-5708")
11321132
def test_06_insert_fails_over_16MiB(self):
11331133
limits_doc = json_data("limits", "limits-doc.json")
11341134
doc = {"_id": "encryption_exceeds_16mib", "unencrypted": "a" * (_16_MiB - 2000)}

0 commit comments

Comments
 (0)