aldettinger commented on code in PR #8795:
URL: https://github.com/apache/camel-quarkus/pull/8795#discussion_r3480422895
##########
integration-tests-support/aws2/src/test/java/org/apache/camel/quarkus/test/support/aws2/Aws2TestEnvContext.java:
##########
@@ -180,10 +186,19 @@ public <B extends AwsClientBuilder<B, C>, C extends
SdkClient> C client(
:
StaticCredentialsProvider.create(AwsBasicCredentials.create(accessKey,
secretKey)));
builder.region(Region.of(region));
- if (localstack.isPresent()) {
+ if (floci.isPresent()) {
+ GenericContainer<?> container = floci.get();
+ URI endpoint = URI.create(String.format("http://%s:%d",
+ container.getHost(),
+ container.getMappedPort(4566)));
Review Comment:
4566 seems to be used more than once. Maybe we could avoid hard coded port ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]