|
10 | 10 | package org.elasticsearch.repositories.s3; |
11 | 11 |
|
12 | 12 | import joptsimple.internal.Strings; |
13 | | -import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; |
14 | | -import software.amazon.awssdk.http.ExecutableHttpRequest; |
15 | | -import software.amazon.awssdk.http.HttpExecuteRequest; |
16 | | -import software.amazon.awssdk.http.SdkHttpClient; |
17 | | -import software.amazon.awssdk.identity.spi.AwsCredentialsIdentity; |
18 | | -import software.amazon.awssdk.regions.Region; |
19 | | - |
20 | 13 | import org.elasticsearch.cluster.ClusterState; |
21 | 14 | import org.elasticsearch.cluster.metadata.Metadata; |
22 | 15 | import org.elasticsearch.cluster.metadata.ProjectId; |
|
35 | 28 | import org.elasticsearch.test.ESTestCase; |
36 | 29 | import org.elasticsearch.threadpool.TestThreadPool; |
37 | 30 | import org.elasticsearch.watcher.ResourceWatcherService; |
| 31 | +import software.amazon.awssdk.auth.credentials.AwsBasicCredentials; |
| 32 | +import software.amazon.awssdk.identity.spi.AwsCredentialsIdentity; |
| 33 | +import software.amazon.awssdk.regions.Region; |
38 | 34 |
|
39 | 35 | import java.nio.charset.StandardCharsets; |
40 | 36 | import java.time.Duration; |
@@ -463,17 +459,4 @@ private String projectClientAccessKey(ProjectId projectId, String clientName) { |
463 | 459 | private String projectClientSecretKey(ProjectId projectId, String clientName) { |
464 | 460 | return projectId + "_" + clientName + "_secret_key_" + s3SecretsIdGenerators.get(projectId).get(); |
465 | 461 | } |
466 | | - |
467 | | - private static class DummySdkHttpClient implements SdkHttpClient { |
468 | | - |
469 | | - static final SdkHttpClient INSTANCE = new DummySdkHttpClient(); |
470 | | - |
471 | | - @Override |
472 | | - public ExecutableHttpRequest prepareRequest(HttpExecuteRequest request) { |
473 | | - return null; |
474 | | - } |
475 | | - |
476 | | - @Override |
477 | | - public void close() {} |
478 | | - } |
479 | 462 | } |
0 commit comments