Allow overriding test configuration at run-time

References #700.
pull/702/head
Andrew Gaul 2024-10-27 12:44:24 -07:00
rodzic 111a681b5a
commit 00142f3a48
6 zmienionych plików z 11 dodań i 6 usunięć

Wyświetl plik

@ -128,7 +128,7 @@ public final class AwsSdkTest {
@Before
public void setUp() throws Exception {
TestUtils.S3ProxyLaunchInfo info = TestUtils.startS3Proxy(
"s3proxy.conf");
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
awsCreds = new BasicAWSCredentials(info.getS3Identity(),
info.getS3Credential());
context = info.getBlobStore().getContext();

Wyświetl plik

@ -63,7 +63,8 @@ public final class JcloudsBucketsLiveTest extends BucketsLiveTest {
protected Properties setupProperties() {
TestUtils.S3ProxyLaunchInfo info;
try {
info = TestUtils.startS3Proxy("s3proxy.conf");
info = TestUtils.startS3Proxy(
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
s3Proxy = info.getS3Proxy();
context = info.getBlobStore().getContext();
blobStoreType = context.unwrap().getProviderMetadata().getId();

Wyświetl plik

@ -59,7 +59,8 @@ public final class JcloudsS3BlobIntegrationLiveTest
protected Properties setupProperties() {
TestUtils.S3ProxyLaunchInfo info;
try {
info = TestUtils.startS3Proxy("s3proxy.conf");
info = TestUtils.startS3Proxy(
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
s3Proxy = info.getS3Proxy();
context = info.getBlobStore().getContext();
blobStoreType = context.unwrap().getProviderMetadata().getId();

Wyświetl plik

@ -55,7 +55,8 @@ public final class JcloudsS3BlobSignerLiveTest extends S3BlobSignerLiveTest {
protected Properties setupProperties() {
TestUtils.S3ProxyLaunchInfo info;
try {
info = TestUtils.startS3Proxy("s3proxy.conf");
info = TestUtils.startS3Proxy(
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
s3Proxy = info.getS3Proxy();
context = info.getBlobStore().getContext();
} catch (Exception e) {

Wyświetl plik

@ -67,7 +67,8 @@ public final class JcloudsS3ClientLiveTest extends S3ClientLiveTest {
protected Properties setupProperties() {
TestUtils.S3ProxyLaunchInfo info;
try {
info = TestUtils.startS3Proxy("s3proxy.conf");
info = TestUtils.startS3Proxy(
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
s3Proxy = info.getS3Proxy();
context = info.getBlobStore().getContext();
blobStoreType = context.unwrap().getProviderMetadata().getId();

Wyświetl plik

@ -58,7 +58,8 @@ public final class JcloudsS3ContainerIntegrationLiveTest
protected Properties setupProperties() {
TestUtils.S3ProxyLaunchInfo info;
try {
info = TestUtils.startS3Proxy("s3proxy.conf");
info = TestUtils.startS3Proxy(
System.getProperty("s3proxy.test.conf", "s3proxy.conf"));
s3Proxy = info.getS3Proxy();
context = info.getBlobStore().getContext();
blobStoreType = context.unwrap().getProviderMetadata().getId();