From 575d75f4d3c690bb4b5562e7bd896e5547548f96 Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Tue, 5 May 2026 13:41:10 -0400 Subject: [PATCH] =?UTF-8?q?PYTHON-5813=20-=20Skip=20QE=20prefixPreview=20a?= =?UTF-8?q?nd=20suffixPreview=20tests=20on=20server=E2=80=A6=20(#2792)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/asynchronous/test_encryption.py | 1 + .../spec/unified/QE-Text-cleanupStructuredEncryptionData.json | 1 + .../spec/unified/QE-Text-compactStructuredEncryptionData.json | 1 + .../spec/unified/QE-Text-prefixPreview.json | 1 + .../spec/unified/QE-Text-substringPreview.json | 2 +- .../spec/unified/QE-Text-suffixPreview.json | 1 + test/test_encryption.py | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/test/asynchronous/test_encryption.py b/test/asynchronous/test_encryption.py index 9650f7043..1503f54c7 100644 --- a/test/asynchronous/test_encryption.py +++ b/test/asynchronous/test_encryption.py @@ -3326,6 +3326,7 @@ class TestAutomaticDecryptionKeys(AsyncEncryptionIntegrationTest): class TestExplicitTextEncryptionProse(AsyncEncryptionIntegrationTest): @async_client_context.require_no_standalone @async_client_context.require_version_min(8, 2, -1) + @async_client_context.require_version_max(8, 99, 99) @async_client_context.require_libmongocrypt_min(1, 15, 1) @async_client_context.require_pymongocrypt_min(1, 16, 0) async def asyncSetUp(self): diff --git a/test/client-side-encryption/spec/unified/QE-Text-cleanupStructuredEncryptionData.json b/test/client-side-encryption/spec/unified/QE-Text-cleanupStructuredEncryptionData.json index 24f33ab3e..fd74573ea 100644 --- a/test/client-side-encryption/spec/unified/QE-Text-cleanupStructuredEncryptionData.json +++ b/test/client-side-encryption/spec/unified/QE-Text-cleanupStructuredEncryptionData.json @@ -4,6 +4,7 @@ "runOnRequirements": [ { "minServerVersion": "8.2.0", + "maxServerVersion": "8.99.99", "topologies": [ "replicaset", "sharded", diff --git a/test/client-side-encryption/spec/unified/QE-Text-compactStructuredEncryptionData.json b/test/client-side-encryption/spec/unified/QE-Text-compactStructuredEncryptionData.json index c7abfe2d4..a89ab96fc 100644 --- a/test/client-side-encryption/spec/unified/QE-Text-compactStructuredEncryptionData.json +++ b/test/client-side-encryption/spec/unified/QE-Text-compactStructuredEncryptionData.json @@ -4,6 +4,7 @@ "runOnRequirements": [ { "minServerVersion": "8.2.0", + "maxServerVersion": "8.99.99", "topologies": [ "replicaset", "sharded", diff --git a/test/client-side-encryption/spec/unified/QE-Text-prefixPreview.json b/test/client-side-encryption/spec/unified/QE-Text-prefixPreview.json index 727938574..c193608e8 100644 --- a/test/client-side-encryption/spec/unified/QE-Text-prefixPreview.json +++ b/test/client-side-encryption/spec/unified/QE-Text-prefixPreview.json @@ -4,6 +4,7 @@ "runOnRequirements": [ { "minServerVersion": "8.2.0", + "maxServerVersion": "8.99.99", "topologies": [ "replicaset", "sharded", diff --git a/test/client-side-encryption/spec/unified/QE-Text-substringPreview.json b/test/client-side-encryption/spec/unified/QE-Text-substringPreview.json index 6a8f133ea..7787194fc 100644 --- a/test/client-side-encryption/spec/unified/QE-Text-substringPreview.json +++ b/test/client-side-encryption/spec/unified/QE-Text-substringPreview.json @@ -126,7 +126,7 @@ ], "tests": [ { - "description": "Insert QE suffixPreview", + "description": "Insert QE substringPreview", "operations": [ { "name": "insertOne", diff --git a/test/client-side-encryption/spec/unified/QE-Text-suffixPreview.json b/test/client-side-encryption/spec/unified/QE-Text-suffixPreview.json index deec5e63b..2de5cde4a 100644 --- a/test/client-side-encryption/spec/unified/QE-Text-suffixPreview.json +++ b/test/client-side-encryption/spec/unified/QE-Text-suffixPreview.json @@ -4,6 +4,7 @@ "runOnRequirements": [ { "minServerVersion": "8.2.0", + "maxServerVersion": "8.99.99", "topologies": [ "replicaset", "sharded", diff --git a/test/test_encryption.py b/test/test_encryption.py index af9f2e3df..099336227 100644 --- a/test/test_encryption.py +++ b/test/test_encryption.py @@ -3308,6 +3308,7 @@ class TestAutomaticDecryptionKeys(EncryptionIntegrationTest): class TestExplicitTextEncryptionProse(EncryptionIntegrationTest): @client_context.require_no_standalone @client_context.require_version_min(8, 2, -1) + @client_context.require_version_max(8, 99, 99) @client_context.require_libmongocrypt_min(1, 15, 1) @client_context.require_pymongocrypt_min(1, 16, 0) def setUp(self):