Skip to content

Commit 3ed68d7

Browse files
Merge branch 'main' into skip-kerberos
2 parents 66cc32d + d2e856e commit 3ed68d7

File tree

51 files changed

+197
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+197
-281
lines changed

.eslintrc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
{
179179
"patterns": [
180180
"**/../lib/**",
181-
"**/../src/**",
182181
"mongodb-mock-server"
183182
]
184183
}
@@ -217,7 +216,6 @@
217216
{
218217
"patterns": [
219218
"**/../lib/**",
220-
"**/../src/**",
221219
"mongodb-mock-server"
222220
]
223221
}

test/benchmarks/unitBench/list.bench.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/* eslint-disable no-restricted-modules */
21
const chalk = require('chalk');
3-
const { List } = require('../../../lib/utils');
2+
const { List } = require('../../../src/utils');
43
const { createHistogram } = require('perf_hooks');
54

65
const iterations = 100;

test/integration/auth/mongodb_aws.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import * as http from 'http';
55
import { performance } from 'perf_hooks';
66
import * as sinon from 'sinon';
77

8-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
98
import { refreshKMSCredentials } from '../../../src/client-side-encryption/providers';
109
import {
1110
AWSSDKCredentialProvider,

test/integration/bson-decimal128/decimal128.test.js

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { expect } from 'chai';
2+
3+
import { type Collection, Decimal128, type MongoClient } from '../../../src';
4+
5+
describe('Decimal128', function () {
6+
let client: MongoClient;
7+
let collection: Collection;
8+
9+
beforeEach(async function () {
10+
client = this.configuration.newClient();
11+
collection = client.db('decimal128').collection('decimal128');
12+
});
13+
14+
afterEach(async function () {
15+
await client.close();
16+
});
17+
18+
it('should correctly insert decimal128 value', async function () {
19+
const object = {
20+
id: 1,
21+
value: Decimal128.fromString('1.28')
22+
};
23+
await collection.insertOne(object);
24+
const doc = await collection.findOne({
25+
id: 1
26+
});
27+
28+
expect(doc.value).to.be.instanceof(Decimal128);
29+
expect(doc.value.toString()).to.equal('1.28');
30+
});
31+
});

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { expect } from 'chai';
55
import * as fs from 'fs';
66
import * as path from 'path';
77

8-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
98
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
109
import { getCSFLEKMSProviders } from '../../csfle-kms-providers';
1110
import { type MongoClient, WriteConcern } from '../../mongodb';

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { expect } from 'chai';
33
import { readFileSync } from 'fs';
44
import * as path from 'path';
55

6-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
76
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
87
import { type CommandStartedEvent, type MongoClient, type MongoClientOptions } from '../../mongodb';
98
import { type TestConfiguration } from '../../tools/runner/config';

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { expect } from 'chai';
22

3-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
43
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
54
import {
65
Binary,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from 'chai';
22
import { env } from 'process';
33

4-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
54
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
65
import { Binary } from '../../mongodb';
76

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { expect } from 'chai';
22

3-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
43
import { MongoCryptAzureKMSRequestError } from '../../../src/client-side-encryption/errors';
5-
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
64
import {
75
type AzureKMSRequestOptions,
86
fetchAzureKMSToken

0 commit comments

Comments
 (0)