update error message to be the one sent from AWS sdk

Signed-off-by: Jonah Back <jonah@jonahback.com>
This commit is contained in:
Jonah Back
2021-03-25 22:07:09 -07:00
parent 60e463c8d4
commit e0ecfc5eeb
@@ -46,6 +46,8 @@ describe('AwsIamKubernetesAuthTranslator tests', () => {
url: '',
authProvider: 'aws',
});
await expect(promise).rejects.toThrow('no AWS credentials found.');
await expect(promise).rejects.toThrow(
'Could not load credentials from any providers',
);
});
});