mirror of https://github.com/apache/jclouds.git
missing build property commit
This commit is contained in:
parent
6b1e1af144
commit
add431a329
|
@ -39,9 +39,9 @@ public class AtmosTestInitializer extends TransientBlobStoreTestInitializer {
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, identity, credential));
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -45,14 +45,15 @@ public class FilesystemTestInitializer extends TransientBlobStoreTestInitializer
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, identity, credential));
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Properties setupProperties(String endpoint, String apiVersion, String identity, String credential) {
|
||||
Properties props = super.setupProperties(endpoint, apiVersion, identity, credential);
|
||||
protected Properties setupProperties(String endpoint, String apiVersion, String buildVersion, String identity,
|
||||
String credential) {
|
||||
Properties props = super.setupProperties(endpoint, apiVersion, buildVersion, identity, credential);
|
||||
props.setProperty(FilesystemConstants.PROPERTY_BASEDIR, TestUtils.TARGET_BASE_DIR);
|
||||
return props;
|
||||
}
|
||||
|
|
|
@ -42,9 +42,9 @@ public class S3TestInitializer extends TransientBlobStoreTestInitializer {
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, identity, credential));
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -40,9 +40,9 @@ public class SwiftTestInitializer extends TransientBlobStoreTestInitializer {
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, identity, credential));
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ import com.google.inject.Module;
|
|||
public class TransientBlobStoreTestInitializer extends BaseTestInitializer {
|
||||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String url, String apiVersion, String app,
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String url, String apiVersion,String buildVersion, String app,
|
||||
String identity, String key) throws IOException {
|
||||
return createStubContext();
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ public abstract class BaseTestInitializer {
|
|||
if (buildVersion != null)
|
||||
testContext.setAttribute("test." + provider + ".build-version", buildVersion);
|
||||
if (identity != null) {
|
||||
return createLiveContext(configurationModule, endpoint, apiVersion, app, identity, credential);
|
||||
return createLiveContext(configurationModule, endpoint, apiVersion, buildVersion, app, identity, credential);
|
||||
} else {
|
||||
return createStubContext();
|
||||
}
|
||||
|
@ -89,5 +89,5 @@ public abstract class BaseTestInitializer {
|
|||
}
|
||||
|
||||
protected abstract BlobStoreContext createLiveContext(Module configurationModule, String url, String apiVersion,
|
||||
String app, String identity, String key) throws IOException;
|
||||
String buildVersion, String app, String identity, String key) throws IOException;
|
||||
}
|
||||
|
|
|
@ -43,10 +43,10 @@ public class AWSS3TestInitializer extends TransientBlobStoreTestInitializer {
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule(), new EnterpriseConfigurationModule()), setupProperties(endpoint, apiVersion,
|
||||
identity, credential));
|
||||
buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -40,9 +40,9 @@ public class AzureBlobTestInitializer extends TransientBlobStoreTestInitializer
|
|||
|
||||
@Override
|
||||
protected BlobStoreContext createLiveContext(Module configurationModule, String endpoint, String apiVersion,
|
||||
String app, String identity, String credential) throws IOException {
|
||||
String buildVersion, String app, String identity, String credential) throws IOException {
|
||||
return new BlobStoreContextFactory().createContext(provider, ImmutableSet.of(configurationModule,
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, identity, credential));
|
||||
new Log4JLoggingModule()), setupProperties(endpoint, apiVersion, buildVersion, identity, credential));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue