use of software.amazon.awssdk.core.signer.NoOpSigner in project aws-sdk-java-v2 by aws.
the class AsyncHttpClientApiCallTimeoutTests method withInterceptors.
private ExecutionContext withInterceptors(ExecutionInterceptor... requestHandlers) {
ExecutionInterceptorChain interceptors = new ExecutionInterceptorChain(Arrays.asList(requestHandlers));
InterceptorContext incerceptorContext = InterceptorContext.builder().request(NoopTestRequest.builder().build()).httpRequest(generateRequest()).build();
return ExecutionContext.builder().signer(new NoOpSigner()).interceptorChain(interceptors).executionAttributes(new ExecutionAttributes()).interceptorContext(incerceptorContext).metricCollector(MetricCollector.create("ApiCall")).build();
}
use of software.amazon.awssdk.core.signer.NoOpSigner in project aws-sdk-java-v2 by aws.
the class HttpClientApiCallAttemptTimeoutTest method withInterceptors.
private ExecutionContext withInterceptors(ExecutionInterceptor... requestHandlers) {
ExecutionInterceptorChain interceptors = new ExecutionInterceptorChain(Arrays.asList(requestHandlers));
InterceptorContext incerceptorContext = InterceptorContext.builder().request(NoopTestRequest.builder().build()).httpRequest(generateRequest()).build();
return ExecutionContext.builder().signer(new NoOpSigner()).interceptorChain(interceptors).executionAttributes(new ExecutionAttributes()).interceptorContext(incerceptorContext).metricCollector(MetricCollector.create("ApiCall")).build();
}
use of software.amazon.awssdk.core.signer.NoOpSigner in project aws-sdk-java-v2 by aws.
the class ExceptionReportingUtilsTest method context.
public RequestExecutionContext context(ExecutionInterceptor... executionInterceptors) {
List<ExecutionInterceptor> interceptors = Arrays.asList(executionInterceptors);
ExecutionInterceptorChain executionInterceptorChain = new ExecutionInterceptorChain(interceptors);
return RequestExecutionContext.builder().executionContext(ExecutionContext.builder().signer(new NoOpSigner()).executionAttributes(new ExecutionAttributes()).interceptorContext(InterceptorContext.builder().request(ValidSdkObjects.sdkRequest()).build()).interceptorChain(executionInterceptorChain).build()).originalRequest(ValidSdkObjects.sdkRequest()).build();
}
use of software.amazon.awssdk.core.signer.NoOpSigner in project edison-microservice by otto-de.
the class S3TestHelper method createS3Client.
public static S3Client createS3Client(final Integer mappedPort) {
final AwsBasicCredentials credentials = AwsBasicCredentials.create("test", "test");
final StaticCredentialsProvider credentialsProvider = StaticCredentialsProvider.create(credentials);
return S3Client.builder().credentialsProvider(credentialsProvider).endpointOverride(URI.create(String.format("http://localhost:%d", mappedPort))).region(Region.EU_CENTRAL_1).serviceConfiguration(S3Configuration.builder().pathStyleAccessEnabled(true).build()).overrideConfiguration(ClientOverrideConfiguration.builder().putAdvancedOption(SdkAdvancedClientOption.SIGNER, new NoOpSigner()).build()).build();
}
use of software.amazon.awssdk.core.signer.NoOpSigner in project aws-sdk-java-v2 by aws.
the class HttpClientApiCallTimeoutTest method withInterceptors.
private ExecutionContext withInterceptors(ExecutionInterceptor... requestHandlers) {
ExecutionInterceptorChain interceptors = new ExecutionInterceptorChain(Arrays.asList(requestHandlers));
InterceptorContext incerceptorContext = InterceptorContext.builder().request(NoopTestRequest.builder().build()).httpRequest(generateRequest()).build();
return ExecutionContext.builder().signer(new NoOpSigner()).interceptorChain(interceptors).executionAttributes(new ExecutionAttributes()).interceptorContext(incerceptorContext).metricCollector(MetricCollector.create("ApiCall")).build();
}
Aggregations