Allow configuration of AWS region

This commit is contained in:
Shane Kilkelly
2021-01-22 09:53:12 +00:00
parent 6d44851869
commit c520ecd70d
4 changed files with 34 additions and 10 deletions

View File

@@ -10,6 +10,7 @@ public class S3SwapStoreTest {
private static final String accessKey = null;
private static final String secret = null;
private static final String bucketName = "com.overleaf.testbucket";
private static final String region = "us-east-1";
private S3SwapStore s3;
@@ -19,7 +20,7 @@ public class S3SwapStoreTest {
s3 = null;
return;
}
s3 = new S3SwapStore(accessKey, secret, bucketName);
s3 = new S3SwapStore(accessKey, secret, bucketName, region);
}
// @Ignore
@@ -38,4 +39,4 @@ public class S3SwapStoreTest {
// assertArrayEquals(contents, IOUtils.toByteArray(down));
// }
}
}