Skip to content

Commit b11709e

Browse files
committed
Skip QEv1 prose test on newer server versions
1 parent 21c6bb1 commit b11709e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/SpecTests/ClientSideEncryptionSpecTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,11 @@ public function testExplicitEncryption(Closure $test): void
12381238
$this->markTestSkipped('Explicit encryption tests require MongoDB 6.0 or later');
12391239
}
12401240

1241+
// Note: this version requirement is consistent with QEv1 spec tests
1242+
if (version_compare($this->getServerVersion(), '6.2.99', '>')) {
1243+
$this->markTestSkipped('MongoDB 7.0 and later requires Queryable Encryption v2 protocol');
1244+
}
1245+
12411246
// Test setup
12421247
$encryptedFields = $this->decodeJson(file_get_contents(__DIR__ . '/client-side-encryption/etc/data/encryptedFields.json'));
12431248
$key1Document = $this->decodeJson(file_get_contents(__DIR__ . '/client-side-encryption/etc/data/keys/key1-document.json'));

0 commit comments

Comments
 (0)