e2e

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Results E2E tests

Quickstart

$ ./00-setup.sh
$ ./01-install.sh
$ go test --tags=e2e .

Dependencies

  • git
  • kubectl
  • ko (>= v0.6.2)
  • kind
  • jq

Scripts

This folder contains several scripts, useful for testing e2e workflows:

00-setup.sh

Sets up a local kind cluster, and configures your local kubectl context to use this environment.

Environment variable Description Default
KIND_CLUSTER_NAME KIND cluster name to use tekton-results
KIND_IMAGE KIND node image to use kindest/node:v1.25.3@sha256:f52781bc0d7a19fb6c405c2af83abfeb311f130707a0e219175677e366cc45d1
01-install.sh

Installs Tekton Pipelines and Results components. Results is always installed from the local repo.

All components are installed to the current kubectl context (kubectl config current-context).

This can safely be ran multiple times, and should be ran anytime a change is made to Results components.

Environment variable Description Default
KO_DOCKER_REPO Docker repository to use for ko kind.local
TEKTON_PIPELINE_CONFIG Tekton Pipelines config source (anything kubectl apply -f compatible) https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml

Running the tests

Once you have configured your local client, you can run the tests by running:

$ go test --tags=e2e .

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳