test/

directory
v0.70.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0

README

Tests

Run E2E Tests Locally

To run run e2e tests locally (outside Tektoncd Plumbing CI):

If cluster is already available, then skip creation of GKE cluster by setting E2E_SKIP_CLUSTER_CREATION environment variable:

export E2E_SKIP_CLUSTER_CREATION=true

If operator is already installed. (For example installed using any of the releases for Kubernetes or OpenShift), then skip operator installation by setting E2E_SKIP_OPERATOR_INSTALLATION environment variable:

export E2E_SKIP_OPERATOR_INSTALLATION=true

Else, set KO_DOCKER_ENV so that operator resources could be installed before running e2e tests.

unset E2E_SKIP_OPERATOR_INSTALLATION
export KO_DOCKER_REPO=<container image registry>

Then run:

./test/e2e-tests.sh

Example 1: Testing in dev

if a cluster is already available and if we are testing code in development, then set E2E_SKIP_CLUSTER_CREATION variable to skip initialization of a GKE cluster.

export E2E_SKIP_CLUSTER_CREATION=true
KO_DOCKER_REPO=<container image registry>
./test/e2e-tests.sh

Example 2: Testing an Operator release for OpenShift

To test an already released version of the operator build for OpenShift Platform, using an already existing OpenShift Cluster.

Install the operator on OpenShift. Then,

E2E_SKIP_CLUSTER_CREATION=true E2E_SKIP_OPERATOR_INSTALLATION=true TARGET=openshift ./test/e2e-tests.sh

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL