Skip to content

Commit 3d519ce

Browse files
committed
Add env files for Kind-in-Prow integration test jobs
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 <[email protected]>
1 parent 380dbd0 commit 3d519ce

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SKIP_INITIALIZE=true
2+
PIPELINE_FEATURE_GATE=alpha
3+
EMBEDDED_STATUS_GATE=minimal
4+
RUN_YAML_TESTS=true
5+
SKIP_GO_E2E_TESTS=true
6+
KO_DOCKER_REPO=registry.local:5000

test/e2e-tests-kind-prow-alpha.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SKIP_INITIALIZE=true
2+
PIPELINE_FEATURE_GATE=alpha
3+
EMBEDDED_STATUS_GATE=minimal
4+
RUN_YAML_TESTS=false
5+
KO_DOCKER_REPO=registry.local:5000

test/e2e-tests-kind-prow-yaml.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SKIP_INITIALIZE=true
2+
PIPELINE_FEATURE_GATE=stable
3+
RUN_YAML_TESTS=true
4+
SKIP_GO_E2E_TESTS=true
5+
KO_DOCKER_REPO=registry.local:5000

test/e2e-tests-kind-prow.env

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SKIP_INITIALIZE=true
2+
PIPELINE_FEATURE_GATE=stable
3+
RUN_YAML_TESTS=false
4+
KO_DOCKER_REPO=registry.local:5000

test/e2e-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ PIPELINE_FEATURE_GATE=${PIPELINE_FEATURE_GATE:-stable}
2525
EMBEDDED_STATUS_GATE=${EMBEDDED_STATUS_GATE:-full}
2626
SKIP_INITIALIZE=${SKIP_INITIALIZE:="false"}
2727
RUN_YAML_TESTS=${RUN_YAML_TESTS:="true"}
28+
SKIP_GO_E2E_TESTS=${SKIP_GO_E2E_TESTS:="false"}
2829
failed=0
2930

3031
# Script entry point.
@@ -66,6 +67,8 @@ function set_embedded_status() {
6667
function run_e2e() {
6768
# Run the integration tests
6869
header "Running Go e2e tests"
70+
# Skip ./test/*.go tests if SKIP_GO_E2E_TESTS == true
71+
if [ "${SKIP_GO_E2E_TESTS}" != "true" ]; then
6972
go_test_e2e -timeout=20m ./test/... || failed=1
7073

7174
# Run these _after_ the integration tests b/c they don't quite work all the way

0 commit comments

Comments
 (0)