Skip to content

Commit

Permalink
chore: Fix AWS DDB sink YAKS tests
Browse files Browse the repository at this point in the history
- Evaluate current project version (e.g. 3.20.0-SNAPSHOT) and replace with version from pull request to fix jitpack dependencies used in Kamelets
- Enable integration logger in AWS tests
  • Loading branch information
christophd committed Feb 2, 2023
1 parent 47686e4 commit 518c4c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/yaks-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ jobs:
- name: Set JitPack coordinates for pull requests
if: github.event_name == 'pull_request'
env:
BASE_REF: ${{ github.base_ref }}
HEAD_REF: ${{ github.head_ref }}
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
run: |
echo "Set JitPack dependency coordinates to ${HEAD_REPO/\//.}:camel-kamelets-utils:${HEAD_REF//\//'~'}-SNAPSHOT"
export PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
# Overwrite JitPack coordinates in the local Kamelets so the tests can use the utility classes in this PR
find kamelets -maxdepth 1 -name '*.kamelet.yaml' -exec sed -i "s/github:apache.camel-kamelets:camel-kamelets-utils:${BASE_REF}-SNAPSHOT/github:${HEAD_REPO/\//.}:camel-kamelets-utils:${HEAD_REF//\//'~'}-SNAPSHOT/g" {} +
find kamelets -maxdepth 1 -name '*.kamelet.yaml' -exec sed -i "s/github:apache.camel-kamelets:camel-kamelets-utils:${PROJECT_VERSION}/github:${HEAD_REPO/\//.}:camel-kamelets-utils:${HEAD_REF//\//'~'}-SNAPSHOT/g" {} +
- name: Get Camel K CLI
run: |
curl --fail -L --silent https://github.com/apache/camel-k/releases/download/v${CAMEL_K_VERSION}/camel-k-client-${CAMEL_K_VERSION}-linux-64bit.tar.gz -o kamel.tar.gz
Expand Down
5 changes: 5 additions & 0 deletions test/aws-ddb-sink/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ config:
tags:
- "not @ignored"
settings:
loggers:
- name: INTEGRATION_STATUS
level: INFO
- name: INTEGRATION_LOGS
level: INFO
dependencies:
- groupId: com.amazonaws
artifactId: aws-java-sdk-dynamodb
Expand Down
8 changes: 4 additions & 4 deletions test/aws-s3/yaks-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ config:
- "not @ignored"
settings:
loggers:
- name: Logger.Message_IN
level: DEBUG
- name: Logger.Message_OUT
level: DEBUG
- name: INTEGRATION_STATUS
level: INFO
- name: INTEGRATION_LOGS
level: INFO
dependencies:
- groupId: com.amazonaws
artifactId: aws-java-sdk-kinesis
Expand Down

0 comments on commit 518c4c0

Please sign in to comment.