This PR splits the functional test stage into a separated OpenShift Pipeline.
Typically, integration tests should be rerun
- when a new container image of WaiverDB is built
- when any service that WaiverDB depends on is updated to a new version
- to ensure an image is mature enough for promotion
Hence, splitting the functional test stage makes it possible to run integration
tests individually. It can also be a step of a larger pipeline.
Additional installations with default parameters for dev, stage, and prod environments:
# for dev
ocprocess--local-f./waiverdb-integration-test-template.yml\-pNAME=waiverdb-dev-integration-test\-pIMAGE="quay.io/factory2/waiverdb:latest"\|ocapply-f-
# for stage
ocprocess--local-f./waiverdb-integration-test-template.yml\-pNAME=waiverdb-stage-integration-test\-pIMAGE="quay.io/factory2/waiverdb:stage"\|ocapply-f-
# for prod
ocprocess--local-f./waiverdb-integration-test-template.yml\-pNAME=waiverdb-prod-integration-test\-pIMAGE="quay.io/factory2/waiverdb:prod"\|ocapply-f-
Usage
To trigger a pipeline build for each environment, run:
# for dev
ocstart-buildwaiverdb-dev-integration-test
# for stage
ocstart-buildwaiverdb-stage-integration-test
# for prod
ocstart-buildwaiverdb-prod-integration-test
To trigger a custom integration test, start a new pipeline build with the image reference you want to test against and the Git repository and commit ID/branch name
where the functional test suite is used:
ocstart-buildwaiverdb-integration-test\-eIMAGE="quay.io/factory2/waiverdb:test"\-eWAIVERDB_GIT_REPO=https://pagure.io/forks/<username>/waiverdb.git\-eWAIVERDB_GIT_REF=my-branch# master branch is default
NOTE
The stage of reporting test results to ResultsDB has not been implemented.
This PR splits the functional test stage into a separated OpenShift Pipeline.
Typically, integration tests should be rerun
- when a new container image of WaiverDB is built
- when any service that WaiverDB depends on is updated to a new version
- to ensure an image is mature enough for promotion
Hence, splitting the functional test stage makes it possible to run integration
tests individually. It can also be a step of a larger pipeline.
Installation
To install this OpenShift pipeline:
Additional installations with default parameters for dev, stage, and prod environments:
Usage
To trigger a pipeline build for each environment, run:
To trigger a custom integration test, start a new pipeline build with the image reference you want to test against and the Git repository and commit ID/branch name
where the functional test suite is used:
NOTE
The stage of reporting test results to ResultsDB has not been implemented.