|
15 | 15 | import org.junit.Test;
|
16 | 16 | import org.junit.runner.RunWith;
|
17 | 17 | import org.junit.runners.Parameterized;
|
| 18 | +import software.amazon.awssdk.awscore.client.builder.AwsClientBuilder; |
18 | 19 | import software.amazon.awssdk.core.client.builder.SdkClientBuilder;
|
19 | 20 | import software.amazon.awssdk.core.exception.SdkClientException;
|
20 | 21 | import software.amazon.awssdk.core.interceptor.Context;
|
21 | 22 | import software.amazon.awssdk.core.interceptor.ExecutionAttributes;
|
22 | 23 | import software.amazon.awssdk.core.interceptor.ExecutionInterceptor;
|
| 24 | +import software.amazon.awssdk.regions.Region; |
23 | 25 | import software.amazon.awssdk.services.endpointdiscoveryrequiredtest.EndpointDiscoveryRequiredTestAsyncClient;
|
24 | 26 | import software.amazon.awssdk.services.endpointdiscoveryrequiredtest.EndpointDiscoveryRequiredTestClient;
|
25 | 27 | import software.amazon.awssdk.services.endpointdiscoveryrequiredwithcustomizationtest.EndpointDiscoveryRequiredWithCustomizationTestAsyncClient;
|
@@ -167,9 +169,10 @@ private static List<TestCase<?>> endpointDiscoveryRequiredAndCustomizedCases(boo
|
167 | 169 | return Arrays.asList(syncCase, asyncCase);
|
168 | 170 | }
|
169 | 171 |
|
170 |
| - private static <T> T createClient(SdkClientBuilder<?, T> clientBuilder, |
| 172 | + private static <T> T createClient(AwsClientBuilder<?, T> clientBuilder, |
171 | 173 | boolean endpointOverridden) {
|
172 |
| - return clientBuilder.applyMutation(c -> addEndpointOverride(c, endpointOverridden)) |
| 174 | + return clientBuilder.region(Region.US_WEST_2) |
| 175 | + .applyMutation(c -> addEndpointOverride(c, endpointOverridden)) |
173 | 176 | .overrideConfiguration(c -> c.retryPolicy(p -> p.numRetries(0))
|
174 | 177 | .addExecutionInterceptor(new EndpointCapturingInterceptor()))
|
175 | 178 | .build();
|
|
0 commit comments