Integration tests

This document covers the integration tests that Konflux triggers after component build pipelines.

Integration tests ensure that all built components conform to some set of requirements. Adding an integration test is as simple as providing a reference to a git repository and the path to the Tekton pipeline that defines the test.

After a successful build pipeline, a snapshot is created with the just-produced component and the remaining component references from the application’s Global Candidate List. The configured integration test scenarios are then run against this snapshot. If you need to run the snapshots through custom checks, you can also create your own integration tests.

The integration service provides users with the ability to reset their component’s Global Candidate List to a desired state with a manually created override. You can create an override snapshot and provide a valid container image for a component to reset the component’s Global Candidate List.

Konflux configures one integration test for all applications to enable manage compliance with Enterprise Contract by default. As with any other integration test, you can edit the tests including setting parameter values (for example the enterprise contract policy evaluated) and whether the tests are required to pass before the snapshot is promoted.

Additional resources