You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cd...@apache.org on 2023/08/23 09:35:01 UTC
[camel-kamelets] 03/05: chore(test): Fix AWS2 S3 YAKS tests
This is an automated email from the ASF dual-hosted git repository.
cdeppisch pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 583ab6bd40cc572e306b3a83e15e0e463cdbc288
Author: Christoph Deppisch <cd...@redhat.com>
AuthorDate: Wed Aug 23 10:33:22 2023 +0200
chore(test): Fix AWS2 S3 YAKS tests
- Force path style access to AWS S3 buckets by using localhost IP address
- Required as YAKS 0.15.x still uses Camel 3.20.x
---
test/aws-s3/amazonS3Client.groovy | 2 +-
test/insert-field-action/yaks-config.yaml | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/aws-s3/amazonS3Client.groovy b/test/aws-s3/amazonS3Client.groovy
index e0d21074..7e31c675 100644
--- a/test/aws-s3/amazonS3Client.groovy
+++ b/test/aws-s3/amazonS3Client.groovy
@@ -22,7 +22,7 @@ import software.amazon.awssdk.services.s3.S3Client
S3Client s3 = S3Client
.builder()
- .endpointOverride(URI.create("${YAKS_TESTCONTAINERS_LOCALSTACK_S3_LOCAL_URL}"))
+ .endpointOverride(URI.create("${YAKS_TESTCONTAINERS_LOCALSTACK_S3_LOCAL_URL}".replace('localhost', '127.0.0.1')))
.credentialsProvider(StaticCredentialsProvider.create(
AwsBasicCredentials.create(
"${YAKS_TESTCONTAINERS_LOCALSTACK_ACCESS_KEY}",
diff --git a/test/insert-field-action/yaks-config.yaml b/test/insert-field-action/yaks-config.yaml
index fd4059a5..5aa3f73d 100644
--- a/test/insert-field-action/yaks-config.yaml
+++ b/test/insert-field-action/yaks-config.yaml
@@ -24,14 +24,14 @@ config:
value: false
- name: YAKS_KUBERNETES_AUTO_REMOVE_RESOURCES
value: false
+ - name: YAKS_JBANG_CAMEL_DUMP_INTEGRATION_OUTPUT
+ value: true
settings:
loggers:
- name: INTEGRATION_STATUS
level: INFO
- name: INTEGRATION_LOGS
level: INFO
- - name: YAKS_JBANG_CAMEL_DUMP_INTEGRATION_OUTPUT
- value: true
resources:
- insert-field-action-binding.yaml
dump: