kopia lustrzana https://github.com/gaul/s3proxy
Include jclouds properties in overrides
rodzic
6b5f9fd7f3
commit
81a5024bd3
|
@ -89,12 +89,11 @@ public final class S3AwsSdkTest {
|
||||||
String virtualHost = s3ProxyProperties.getProperty(
|
String virtualHost = s3ProxyProperties.getProperty(
|
||||||
S3ProxyConstants.PROPERTY_VIRTUAL_HOST);
|
S3ProxyConstants.PROPERTY_VIRTUAL_HOST);
|
||||||
|
|
||||||
Properties properties = new Properties();
|
|
||||||
ContextBuilder builder = ContextBuilder
|
ContextBuilder builder = ContextBuilder
|
||||||
.newBuilder(provider)
|
.newBuilder(provider)
|
||||||
.credentials(identity, credential)
|
.credentials(identity, credential)
|
||||||
.modules(ImmutableList.<Module>of(new SLF4JLoggingModule()))
|
.modules(ImmutableList.<Module>of(new SLF4JLoggingModule()))
|
||||||
.overrides(properties);
|
.overrides(s3ProxyProperties);
|
||||||
if (!Strings.isNullOrEmpty(endpoint)) {
|
if (!Strings.isNullOrEmpty(endpoint)) {
|
||||||
builder.endpoint(endpoint);
|
builder.endpoint(endpoint);
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,12 +95,11 @@ public final class S3ProxyTest {
|
||||||
String virtualHost = s3ProxyProperties.getProperty(
|
String virtualHost = s3ProxyProperties.getProperty(
|
||||||
S3ProxyConstants.PROPERTY_VIRTUAL_HOST);
|
S3ProxyConstants.PROPERTY_VIRTUAL_HOST);
|
||||||
|
|
||||||
Properties properties = new Properties();
|
|
||||||
ContextBuilder builder = ContextBuilder
|
ContextBuilder builder = ContextBuilder
|
||||||
.newBuilder(provider)
|
.newBuilder(provider)
|
||||||
.credentials(identity, credential)
|
.credentials(identity, credential)
|
||||||
.modules(ImmutableList.<Module>of(new SLF4JLoggingModule()))
|
.modules(ImmutableList.<Module>of(new SLF4JLoggingModule()))
|
||||||
.overrides(properties);
|
.overrides(s3ProxyProperties);
|
||||||
if (!Strings.isNullOrEmpty(endpoint)) {
|
if (!Strings.isNullOrEmpty(endpoint)) {
|
||||||
builder.endpoint(endpoint);
|
builder.endpoint(endpoint);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue