Skip to content

Commit b012c79

Browse files
committed
test(NODE-7179): migrate integration/auth/*
1 parent 1260352 commit b012c79

6 files changed

Lines changed: 16 additions & 13 deletions

test/integration/auth/auth.prose.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { expect } from 'chai';
22
import * as sinon from 'sinon';
33

4-
import { Connection, LEGACY_HELLO_COMMAND, type MongoClient, ScramSHA256 } from '../../mongodb';
4+
import { type MongoClient } from '../../../src';
5+
import { ScramSHA256 } from '../../../src/cmap/auth/scram';
6+
import { Connection } from '../../../src/cmap/connection';
7+
import { LEGACY_HELLO_COMMAND } from '../../../src/constants';
58
import { type TestConfiguration } from '../../tools/runner/config';
69

710
function makeConnectionString(config, username, password) {

test/integration/auth/mongodb_aws.test.ts

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

8-
import { refreshKMSCredentials } from '../../../src/client-side-encryption/providers';
98
import {
10-
AWSSDKCredentialProvider,
119
type CommandOptions,
12-
Connection,
1310
type Document,
1411
MongoAWSError,
1512
type MongoClient,
16-
MongoDBAWS,
1713
type MongoDBNamespace,
1814
type MongoDBResponseConstructor,
1915
MongoMissingCredentialsError,
2016
MongoMissingDependencyError,
21-
MongoServerError,
22-
setDifference
23-
} from '../../mongodb';
17+
MongoServerError
18+
} from '../../../src';
19+
import { refreshKMSCredentials } from '../../../src/client-side-encryption/providers';
20+
import { AWSSDKCredentialProvider } from '../../../src/cmap/auth/aws_temporary_credentials';
21+
import { MongoDBAWS } from '../../../src/cmap/auth/mongodb_aws';
22+
import { Connection } from '../../../src/cmap/connection';
23+
import { setDifference } from '../../../src/utils';
2424

2525
const isMongoDBAWSAuthEnvironment = (process.env.MONGODB_URI ?? '').includes('MONGODB-AWS');
2626

test/integration/auth/mongodb_oidc.prose.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
type ClientSession,
99
type Collection,
1010
MongoClient,
11-
type MongoDBOIDC,
1211
type OIDCCallbackParams,
1312
type OIDCResponse
14-
} from '../../mongodb';
13+
} from '../../../src';
14+
import { type MongoDBOIDC } from '../../../src/cmap/auth/mongodb_oidc';
1515

1616
const createCallback = (tokenFile = 'test_user1', expiresInSeconds?: number, extraFields?: any) => {
1717
return async (params: OIDCCallbackParams) => {

test/integration/auth/mongodb_oidc_azure.prose.05.test.ts

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

3-
import { type Collection, MongoClient, type MongoClientOptions } from '../../mongodb';
3+
import { type Collection, MongoClient, type MongoClientOptions } from '../../../src';
44

55
const DEFAULT_URI = 'mongodb://127.0.0.1:27017';
66

test/integration/auth/mongodb_oidc_gcp.prose.06.test.ts

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

3-
import { type Collection, MongoClient, type MongoClientOptions } from '../../mongodb';
3+
import { type Collection, MongoClient, type MongoClientOptions } from '../../../src';
44

55
const DEFAULT_URI = 'mongodb://127.0.0.1:27017';
66

test/integration/auth/mongodb_oidc_k8s.prose.07.test.ts

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

3-
import { type Collection, MongoClient } from '../../mongodb';
3+
import { type Collection, MongoClient } from '../../../src';
44

55
const DEFAULT_URI = 'mongodb://127.0.0.1:27017';
66

0 commit comments

Comments
 (0)