Skip to content

Commit

Permalink
Add env files for Kind-in-Prow integration test jobs
Browse files Browse the repository at this point in the history
The existing `test/e2e-tests-kind.env` is specifically for the `PipelineRun` approach. These new files are for running the e2e tests, via `kind`, in Prow.

There are four new env files - one for just the go e2e tests each for `stable` and `alpha`, and one for just the yaml tests each for `stable` and `alpha`.

Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
  • Loading branch information
abayer committed Jul 5, 2022
1 parent 380dbd0 commit fd8684a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/e2e-tests-kind-prow-alpha-yaml.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SKIP_INITIALIZE=true
PIPELINE_FEATURE_GATE=alpha
EMBEDDED_STATUS_GATE=minimal
RUN_YAML_TESTS=true
SKIP_GO_E2E_TESTS=true
KO_DOCKER_REPO=registry.local:5000
5 changes: 5 additions & 0 deletions test/e2e-tests-kind-prow-alpha.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SKIP_INITIALIZE=true
PIPELINE_FEATURE_GATE=alpha
EMBEDDED_STATUS_GATE=minimal
RUN_YAML_TESTS=false
KO_DOCKER_REPO=registry.local:5000
5 changes: 5 additions & 0 deletions test/e2e-tests-kind-prow-yaml.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SKIP_INITIALIZE=true
PIPELINE_FEATURE_GATE=stable
RUN_YAML_TESTS=true
SKIP_GO_E2E_TESTS=true
KO_DOCKER_REPO=registry.local:5000
4 changes: 4 additions & 0 deletions test/e2e-tests-kind-prow.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SKIP_INITIALIZE=true
PIPELINE_FEATURE_GATE=stable
RUN_YAML_TESTS=false
KO_DOCKER_REPO=registry.local:5000
6 changes: 5 additions & 1 deletion test/e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PIPELINE_FEATURE_GATE=${PIPELINE_FEATURE_GATE:-stable}
EMBEDDED_STATUS_GATE=${EMBEDDED_STATUS_GATE:-full}
SKIP_INITIALIZE=${SKIP_INITIALIZE:="false"}
RUN_YAML_TESTS=${RUN_YAML_TESTS:="true"}
SKIP_GO_E2E_TESTS=${SKIP_GO_E2E_TESTS:="false"}
failed=0

# Script entry point.
Expand Down Expand Up @@ -66,7 +67,10 @@ function set_embedded_status() {
function run_e2e() {
# Run the integration tests
header "Running Go e2e tests"
go_test_e2e -timeout=20m ./test/... || failed=1
# Skip ./test/*.go tests if SKIP_GO_E2E_TESTS == true
if [ "${SKIP_GO_E2E_TESTS}" != "true" ]; then
go_test_e2e -timeout=20m ./test/... || failed=1
fi

# Run these _after_ the integration tests b/c they don't quite work all the way
# and they cause a lot of noise in the logs, making it harder to debug integration
Expand Down

0 comments on commit fd8684a

Please sign in to comment.