@@ -2,6 +2,7 @@ import { BSON, EJSON } from 'bson';
22import { expect } from 'chai' ;
33import * as fs from 'fs/promises' ;
44import * as path from 'path' ;
5+ import { satisfies } from 'semver' ;
56
67import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption' ;
78import { getCSFLEKMSProviders } from '../../csfle-kms-providers' ;
@@ -37,20 +38,25 @@ export const getKmsProviders = (localKey, kmipEndpoint, azureEndpoint, gcpEndpoi
3738 return result ;
3839} ;
3940
41+ export const vs25Predicate = ( ) =>
42+ satisfies ( process . version , '<25.0.0' ) ? true : 'TODO(NODE-7250): fix these tests in v25' ;
43+
4044// eslint-disable-next-line @typescript-eslint/no-empty-function
41- const noop = ( ) => { } ;
45+ const noop = ( ) => { } ;
4246const metadata : MongoDBMetadataUI = {
4347 requires : {
4448 clientSideEncryption : true ,
45- topology : '!load-balanced'
49+ topology : '!load-balanced' ,
50+ predicate : vs25Predicate
4651 }
4752} ;
4853
4954const eeMetadata : MongoDBMetadataUI = {
5055 requires : {
5156 clientSideEncryption : true ,
5257 mongodb : '>=7.0.0' ,
53- topology : [ 'replicaset' , 'sharded' ]
58+ topology : [ 'replicaset' , 'sharded' ] ,
59+ predicate : vs25Predicate
5460 }
5561} ;
5662
@@ -1717,7 +1723,7 @@ describe('Client Side Encryption Prose Tests', metadata, function () {
17171723 function ( ) { }
17181724 ) . skipReason = 'TODO(NODE-4840): Node does not support any OCSP options' ;
17191725
1720- context ( 'Case 6: named KMS providers apply TLS options' , function ( ) {
1726+ context ( 'Case 6: named KMS providers apply TLS options' , metadata , function ( ) {
17211727 afterEach ( ( ) => keyvaultClient ?. close ( ) ) ;
17221728 beforeEach ( async function ( ) {
17231729 const shouldSkip = this . configuration . filters . ClientSideEncryptionFilter . filter ( {
0 commit comments