Skip to content

Commit

Permalink
Fix test aws credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ivank committed Oct 6, 2018
1 parent 96dfc03 commit ff1a2b4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,18 @@ class TestS3DataSource extends S3DataSource {
}
}

const s3 = new S3({ endpoint: `http://localhost:4568`, sslEnabled: false, s3ForcePathStyle: true });
const s3 = new S3({
endpoint: `http://localhost:4568`,
sslEnabled: false,
s3ForcePathStyle: true,
secretAccessKey: '123',
accessKeyId: 'asd',
});

const config: DataSourceConfig<{}> = { cache: new InMemoryLRUCache(), context: {} };

const dataSource = new TestS3DataSource(s3);

dataSource.initialize(config);

const deleteBucketContents = async (name: string) => {
Expand Down

0 comments on commit ff1a2b4

Please sign in to comment.