@@ -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 ( / c r e d e n t i a l - p r o v i d e r s / ) ;
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 ( / c r e d e n t i a l - p r o v i d e r s / ) ;
489493 } ) ;
490494 } ) ;
491495
0 commit comments