tree: 00392627e71d047de2e85a52e829314dd349e541 [path history] [tgz]
  1. advanced/
  2. builder/
  3. common/
  4. install/
  5. knative/
  6. native/
  7. support/
  8. telemetry/
  9. yaks/
  10. README.md
e2e/README.md

Camel K End-To-End tests

This directory contains the suite of test that are run on a CI to ensure the stability of the product and no regression are introduced at each PR. The full documentation can be found at https://camel.apache.org/camel-k/next/contributing/e2e.html

Structure of the directory

NOTE: dear contributor, please, keep this organization as clean as you can, updating any documentation if any change is done.

  • builder
  • common
  • advanced
  • install
  • knative
  • native
  • telemetry
  • yaks

Builder

Contains a basic set of tests required to validate each builder strategy we offer. Ideally we don't want to test complex features but only a few test to validate any builder we offer is working correctly.

Common

Full set of test to validate the main project feature. This test will assume the presence of a namespaced operator (installation provided by the same test execution suite). Insert here any test that has to validate any new feature required.

Advanced

Additional set of test that cover the main common features but that requires some particular operator configuration. In this test suite you must take care of installing the operator as well.

Install

Test suite that cover the different installation procedures we offer and any upgrade scenario.

Knative

Test suite that cover the features associated with Knative. This test will assume the presence of a namespaced operator (installation provided by the same test execution suite) togheter with Knative operator configuration.

Native

Test suite that cover the Quarkus Native build. As it is high resource consuming, we just validate that a native build for the supported DSLs is working.

Telemetry

Test suite that cover the features associated with Telemetry feature. The test execution takes care of installing the required configuration.

Yaks

Test suite that cover certain Knative features togheter with YAKS operator.

Environment variables

You can set some environment variables to change the behavior of the E2E test suite.

EnvDefaultDescription
CAMEL_K_TEST_SKIP_PROBLEMATICfalseSkips tests that are marked to be problematic (flaky) on certain environments (e.g. on OpenShift).
CAMEL_K_TEST_SAVE_FAILED_TEST_NAMESPACEfalseUsed to not remove the temporary test namespaces after the test run. Enables better analysis of resources after the test
CAMEL_K_TEST_LOG_LEVELinfoLogging level used to run the tests and used in Maven commands run by the operator (if level is debug the Maven commands use -X option).
CAMEL_K_TEST_MAVEN_CLI_OPTIONS{}Maven CLI options used to run Camel K integrations during the tests.
CAMEL_K_TEST_OPERATOR_IMAGEdocker.io/apache/camel-k:2.4.0-SNAPSHOTCamel K operator image used in operator installation.
CAMEL_K_TEST_OPERATOR_IMAGE_PULL_POLICY-Operator image pull policy.
CAMEL_K_TEST_IMAGE_NAMEdocker.io/apache/camel-kCamel K operator image name used in operator installation.
CAMEL_K_TEST_IMAGE_VERSION2.4.0-SNAPSHOTCamel K operator image version used in operator installation. Value is retrieved from pkg/util/defaults/defaults.go
CAMEL_K_TEST_NO_OLM_OPERATOR_IMAGEdocker.io/apache/camel-k:2.4.0-SNAPSHOTCamel K operator image used in non OLM based operator installation.
CAMEL_K_TEST_RUNTIME_VERSION3.8.1Camel K runtime version used for the integrations. Value is retrieved from pkg/util/defaults/defaults.go
CAMEL_K_TEST_BASE_IMAGEeclipse-temurin:17Camel K runtime base image used for the integrations. Value is retrieved from pkg/util/defaults/defaults.go
CAMEL_K_TEST_TIMEOUT_SHORT1Customize the timeouts (in minutes) used in test assertions.
CAMEL_K_TEST_TIMEOUT_MEDIUM5Customize the timeouts (in minutes) used in test assertions.
CAMEL_K_TEST_TIMEOUT_LONG15Customize the timeouts (in minutes) used in test assertions.
CAMEL_K_TEST_MAVEN_CA_PEM_PATH-Optional Maven certificate path.
CAMEL_K_TEST_COPY_CATALOGtrueEnable/disable the optimization to copy the Camel Catalog from default operator namespace for each test namespace.
CAMEL_K_TEST_COPY_INTEGRATION_KITStrueEnable/disable the optimization to copy integration kits from default operator namespace for each test namespace.
CAMEL_K_TEST_NS-Custom test namespace name used to create temporary namespaces.
CAMEL_K_TEST_MAKE_DIR-Used in Helm and Kustomize install tests as Makefile root dir.
CAMEL_K_TEST_MAKE_ARGS-Used in Helm and Kustomize install tests as Makefile arguments.