Skip to content

Commit ba8330d

Browse files
committed
skip client side encryption tests for node v25
1 parent 1702987 commit ba8330d

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

test/integration/client-side-encryption/client_side_encryption.prose.10.kms_tls.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ import { expect } from 'chai';
22

33
import { getCSFLEKMSProviders } from '../../csfle-kms-providers';
44
import { ClientEncryption, type MongoClient } from '../../mongodb';
5+
import { vs25Predicate } from './client_side_encryption.prose.test';
56

67
const metadata: MongoDBMetadataUI = {
78
requires: {
8-
clientSideEncryption: true
9+
clientSideEncryption: true,
10+
predicate: vs25Predicate
911
}
1012
};
1113

test/integration/client-side-encryption/client_side_encryption.prose.test.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { BSON, EJSON } from 'bson';
22
import { expect } from 'chai';
33
import * as fs from 'fs/promises';
44
import * as path from 'path';
5+
import { satisfies } from 'semver';
56

67
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
78
import { 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 = () => { };
4246
const metadata: MongoDBMetadataUI = {
4347
requires: {
4448
clientSideEncryption: true,
45-
topology: '!load-balanced'
49+
topology: '!load-balanced',
50+
predicate: vs25Predicate
4651
}
4752
};
4853

4954
const 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

Comments
 (0)