From 95b473916ef8f868e1862b10f1004ef9a3f3626d Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 9 Aug 2023 14:14:12 -0400 Subject: [PATCH] Fix unit tests by updating auth for dynamodb-local 2.x See https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html. --- src/test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/test.ts b/src/test.ts index eecb779..da5380f 100644 --- a/src/test.ts +++ b/src/test.ts @@ -14,9 +14,12 @@ const N = 20 beforeAll(async () => { doc = DynamoDBDocument.from( new DynamoDB({ - credentials: { accessKeyId: '-', secretAccessKey: '-' }, + credentials: { + accessKeyId: 'fakeMyKeyId', + secretAccessKey: 'fakeSecretAccessKey', + }, endpoint: 'http://localhost:8000', - region: '-', + region: 'local-env', }) ) const options: DynamoDBAutoIncrementProps = {