mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
test(elasticache): build the log delivery test's clients through AwsTestClients (#8899)
This commit is contained in:
1 parent
1df1af297d
commit
c83940bf78
1 file changed
+3
-8
+3
-8
@@ -2,6 +2,7 @@ package io.floci.aws.services.elasticache;
|
||||
|
||||
import io.floci.aws.services.elasticache.container.ElastiCacheContainerHandle;
|
||||
import io.floci.aws.services.elasticache.container.ElastiCacheContainerManager;
|
||||
import io.floci.aws.testing.AwsTestClients;
|
||||
import io.quarkus.test.InjectMock;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
@@ -9,8 +10,6 @@ import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
import software.amazon.awssdk.auth.credentials.AwsBasicCredentials;
|
||||
import software.amazon.awssdk.auth.credentials.StaticCredentialsProvider;
|
||||
import software.amazon.awssdk.regions.Region;
|
||||
import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient;
|
||||
import software.amazon.awssdk.services.elasticache.ElastiCacheClient;
|
||||
@@ -133,14 +132,10 @@ class ElastiCacheLogDeliveryIntegrationTest {
|
||||
}
|
||||
|
||||
private CloudWatchLogsClient logs() {
|
||||
return CloudWatchLogsClient.builder().endpointOverride(endpoint).region(Region.US_EAST_1)
|
||||
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test")))
|
||||
.build();
|
||||
return AwsTestClients.create(CloudWatchLogsClient.builder(), "000000000000", Region.US_EAST_1, endpoint);
|
||||
}
|
||||
|
||||
private ElastiCacheClient client() {
|
||||
return ElastiCacheClient.builder().endpointOverride(endpoint).region(Region.US_EAST_1)
|
||||
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create("test", "test")))
|
||||
.build();
|
||||
return AwsTestClients.create(ElastiCacheClient.builder(), "000000000000", Region.US_EAST_1, endpoint);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user