Skip to content

Commit 61b56ce

Browse files
committed
test: fixes
1 parent 330a330 commit 61b56ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/integration/auth/mongodb_aws.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ describe('MONGODB-AWS', function () {
6262
}
6363
});
6464

65-
describe('when attempting AWS auth', function () {
65+
// TODO(NODE-7046): Unskip when removing support for AWS credentials in URI.
66+
// The drivers tools scripts put the credentials in the URI currently, this will
67+
// need to change when doing the DRIVERS-3131 work.
68+
describe.skip('when attempting AWS auth', function () {
6669
it('throws an error', async function () {
6770
client = this.configuration.newClient(process.env.MONGODB_URI); // use the URI built by the test environment
6871

@@ -72,7 +75,7 @@ describe('MONGODB-AWS', function () {
7275
.estimatedDocumentCount()
7376
.catch(e => e);
7477

75-
expect(err).to.be.instanceof(MongoMissingDependencyError);
78+
expect(err).to.be.instanceof(MongoAWSError);
7679
expect(err.message).to.match(/credential-providers/);
7780
});
7881
});
@@ -485,7 +488,8 @@ describe('AWS KMS Credential Fetching', function () {
485488
});
486489
it('fetching AWS KMS credentials throws an error', async function () {
487490
const error = await refreshKMSCredentials({ aws: {} }).catch(e => e);
488-
expect(error).to.be.instanceOf(MongoMissingDependencyError);
491+
expect(error).to.be.instanceOf(MongoAWSError);
492+
expect(error.message).to.match(/credential-providers/);
489493
});
490494
});
491495

0 commit comments

Comments
 (0)