Skip to content

Commit d9ed22a

Browse files
removed resources that we are no longer integration testing - connection thread, docker fs access, client encryption
1 parent e60a42b commit d9ed22a

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

test/integration/node-specific/client_close.test.ts

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ describe.skip('MongoClient.close() Integration', () => {
3131
});
3232
});
3333

34-
describe('Node.js resource: .dockerenv file access', () => {
35-
describe('when client is connecting and fs.access stalls while accessing .dockerenv file', () => {
36-
it('the file access is not interrupted by client.close()', async function () {}).skipReason =
37-
'TODO(NODE-6624): Align Client.Close Test Cases with Finalized Design';
38-
});
39-
});
40-
4134
describe('MongoClientAuthProviders', () => {
4235
describe('Node.js resource: Token file read', () => {
4336
let tokenFileEnvCache;
@@ -110,10 +103,6 @@ describe.skip('MongoClient.close() Integration', () => {
110103
describe('Node.js resource: Socket', () => {
111104
it('no sockets remain after client.close()', metadata, async function () {});
112105
});
113-
114-
describe('Server resource: connection thread', () => {
115-
it('no connection threads remain after client.close()', metadata, async () => {});
116-
});
117106
});
118107

119108
describe('RTT Pinger', () => {
@@ -131,12 +120,6 @@ describe.skip('MongoClient.close() Integration', () => {
131120
it('no sockets remain after client.close()', async () => {});
132121
});
133122
});
134-
135-
describe('Server resource: connection thread', () => {
136-
describe('when rtt monitoring is turned on', () => {
137-
it('no server-side connection threads remain after client.close()', async () => {});
138-
});
139-
});
140123
});
141124
});
142125
});
@@ -165,16 +148,6 @@ describe.skip('MongoClient.close() Integration', () => {
165148
it('no sockets remain after client.close()', async () => {});
166149
});
167150
});
168-
169-
describe('Server-side resource: Connection thread', () => {
170-
describe('after a connection is checked out', () => {
171-
it('no connection threads remain after client.close()', async () => {});
172-
});
173-
174-
describe('after a minPoolSize has been set on the ConnectionPool', () => {
175-
it('no connection threads remain after client.close()', async () => {});
176-
});
177-
});
178151
});
179152
});
180153
});
@@ -319,56 +292,6 @@ describe.skip('MongoClient.close() Integration', () => {
319292
});
320293
});
321294

322-
describe('ClientEncryption', () => {
323-
describe('KMS Request', () => {
324-
describe('Node.js resource: TLS file read', () => {
325-
describe('when KMSRequest reads an infinite TLS file read', () => {
326-
it('the file read is interrupted by client.close()', async () => {
327-
await runScriptAndGetProcessInfo(
328-
'tls-file-read-client-encryption',
329-
config,
330-
async function run({ MongoClient, uri, expect, ClientEncryption, BSON }) {
331-
const infiniteFile = '/dev/zero';
332-
const kmsProviders = BSON.EJSON.parse(process.env.CSFLE_KMS_PROVIDERS);
333-
const masterKey = {
334-
region: 'us-east-1',
335-
key: 'arn:aws:kms:us-east-1:579766882180:key/89fcc2c4-08b0-4bd9-9f25-e30687b580d0'
336-
};
337-
const provider = 'aws';
338-
339-
const keyVaultClient = new MongoClient(uri);
340-
await keyVaultClient.connect();
341-
342-
await keyVaultClient.db('keyvault').collection('datakeys');
343-
const clientEncryption = new ClientEncryption(keyVaultClient, {
344-
keyVaultNamespace: 'keyvault.datakeys',
345-
kmsProviders,
346-
tlsOptions: { aws: { tlsCAFile: infiniteFile } }
347-
});
348-
349-
const dataKeyPromise = clientEncryption.createDataKey(provider, { masterKey });
350-
351-
expect(process.getActiveResourcesInfo()).to.include('FSReqPromise');
352-
353-
await keyVaultClient.close();
354-
355-
expect(process.getActiveResourcesInfo()).to.not.include('FSReqPromise');
356-
357-
const err = await dataKeyPromise.catch(e => e);
358-
expect(err).to.exist;
359-
expect(err.errmsg).to.contain('Error in KMS response');
360-
}
361-
);
362-
});
363-
});
364-
});
365-
366-
describe('Node.js resource: Socket', () => {
367-
it('no sockets remain after client.close()', async () => {});
368-
});
369-
});
370-
});
371-
372295
describe('Server resource: Cursor', () => {
373296
describe('after cursors are created', () => {
374297
it('all active server-side cursors are closed by client.close()', async function () {});

0 commit comments

Comments
 (0)