Skip to content

Latest commit

 

History

History
 
 

integration

Run Prow integration tests

Run everything

This script would setup the environment, run all the available integration tests, and then cleans up everything.

./prow/test/integration/integration-test.sh

Setup

In order to set up the cluster, run the integration tests, and not teardown the cluster after use:

SKIP_TEARDOWN=true ./prow/test/integration/integration-test.sh

Run test

After prow is installed on top of the local cluster, run the integration tests under test directory

Optional parameters:

./prow/test/integration/integration-test.sh run [--test_filter=TestHook] [--cache_test_results=no]

Cleanup

If the local cluster exists, run the tests and then delete the local cluster and the local registry by using:

SKIP_SETUP=true ./prow/test/integration/integration-test.sh

Add new integration tests

Add new components

(Assume the component to be added is named most-awesome-component)

Add new tests

Tests are implemented in Go, located at test directory.

  • [If this is a new component] Create a file called most-awesome-component_test.go
  • Add test in most-awesome-component_test.go