This commit is contained in:
Andrea Turli 2016-11-17 16:24:12 +01:00
parent 75a674fcf6
commit daf7980d73
1 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,7 @@ import org.jclouds.s3.S3Client;
import org.jclouds.s3.S3ClientTest;
import org.jclouds.s3.domain.S3Object;
import org.jclouds.s3.fallbacks.FalseIfBucketAlreadyOwnedByYouOrOperationAbortedWhenBucketExists;
import org.jclouds.s3.filters.RequestAuthorizeSignature;
import org.jclouds.s3.options.CopyObjectOptions;
import org.jclouds.s3.options.PutBucketOptions;
import org.jclouds.s3.options.PutObjectOptions;
@ -52,6 +53,7 @@ import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.common.reflect.Invokable;
import com.google.inject.Module;
import com.google.inject.Scopes;
// NOTE:without testName, this will not call @Before* and fail w/NPE during
// surefire
@ -194,6 +196,12 @@ public class AWSS3ClientTest extends S3ClientTest<AWSS3Client> {
protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
return "2009-11-08T15:54:08.897Z";
}
// subclass expects v2 signatures
@Override
protected void bindRequestSigner() {
bind(RequestAuthorizeSignature.class).to(AWSRequestAuthorizeSignature.class).in(Scopes.SINGLETON);
}
}
@Override