Skip to content

Commit 0bcf81a

Browse files
authored
Merge pull request #914 from SergiiKram/fix-dynamodb-tests
Fix DynamoDB tests
2 parents 644ddd8 + 2f9908b commit 0bcf81a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/WorkflowCore.Tests.DynamoDB/DynamoDbDockerSetup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class DynamoDbDockerSetup : DockerSetup
1111
{
1212
public static string ConnectionString { get; set; }
1313

14-
public static AWSCredentials Credentials => new EnvironmentVariablesAWSCredentials();
14+
public static AWSCredentials Credentials => new BasicAWSCredentials("DUMMYIDEXAMPLE", "DUMMYEXAMPLEKEY");
1515

1616
public override string ImageName => @"amazon/dynamodb-local";
1717
public override int InternalPort => 8000;
@@ -30,7 +30,7 @@ public override bool TestReady()
3030
{
3131
ServiceURL = $"http://localhost:{ExternalPort}"
3232
};
33-
AmazonDynamoDBClient client = new AmazonDynamoDBClient(clientConfig);
33+
AmazonDynamoDBClient client = new AmazonDynamoDBClient(Credentials, clientConfig);
3434
var resp = client.ListTablesAsync().Result;
3535

3636
return resp.HttpStatusCode == HttpStatusCode.OK;

0 commit comments

Comments
 (0)