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-k.git
commit 89a71fa7cc9bcf4a6d1e49c24cad046b7d987665 Author: Christoph Deppisch <cdeppi...@redhat.com> AuthorDate: Mon Mar 11 09:55:07 2024 +0100 chore(e2e): Add option to set base image and runtime version in E2E tests - Useful when running native tests on a macOS arm64 machine (e.g. CAMEL_K_TEST_BASE_IMAGE=arm64v8/eclipse-temurin:17) - Useful when running tests with SNAPSHOT runtime version (e.g. CAMEL_K_TEST_RUNTIME_VERSION=3.8.0-SNAPSHOT) --- e2e/support/test_support.go | 10 ++++++++++ script/Makefile | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/e2e/support/test_support.go b/e2e/support/test_support.go index cce80567d..db23f7814 100644 --- a/e2e/support/test_support.go +++ b/e2e/support/test_support.go @@ -308,6 +308,16 @@ func kamelInstallWithContext(t *testing.T, ctx context.Context, operatorID strin } } + runtimeVersion := os.Getenv("CAMEL_K_TEST_RUNTIME_VERSION") + if runtimeVersion != "" { + fmt.Printf("Setting runtime version to %s\n", runtimeVersion) + installArgs = append(installArgs, "--runtime-version", runtimeVersion) + } + baseImage := os.Getenv("CAMEL_K_TEST_BASE_IMAGE") + if baseImage != "" { + fmt.Printf("Setting base image to %s\n", baseImage) + installArgs = append(installArgs, "--base-image", baseImage) + } opImage := os.Getenv("CAMEL_K_TEST_OPERATOR_IMAGE") if opImage != "" { fmt.Printf("Setting operator image to %s\n", opImage) diff --git a/script/Makefile b/script/Makefile index f281adcdc..c4f33d261 100644 --- a/script/Makefile +++ b/script/Makefile @@ -362,7 +362,7 @@ endif build-compile-integration-tests: @echo "####### Compiling integration tests..." - export CAMEL_K_E2E_JUST_COMPILE="true" ;\ + export CAMEL_K_E2E_JUST_COMPILE="true"; \ go test -run nope -tags="integration" ./e2e/... clean: