missing build property commit

This commit is contained in:
Adrian Cole 2012-01-08 00:03:37 -08:00
parent 6b1e1af144
commit add431a329
8 changed files with 18 additions and 17 deletions

View File

@ -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));
}
}

View File

@ -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;
}

View File

@ -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));
}
}

View File

@ -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));
}
}

View File

@ -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();
}

View File

@ -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;
}

View File

@ -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));
}
}

View File

@ -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));
}
}