Skip to content

Commit

Permalink
Enable skipDelete for e2e tests (#1502)
Browse files Browse the repository at this point in the history
Summary:
`skipDelete` option, if set, will not delete the resources after running the tests. This improves debuggability of the e2e tests as we will have all the container logs including KUDO manager.

Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
  • Loading branch information
Aleksey Dukhovniy committed May 15, 2020
1 parent 900ca04 commit 5a4cdc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ then
mkdir operators/bin/
cp ./bin/kubectl-kudo operators/bin/
cp ./bin/manager operators/bin/
cd operators && ./bin/kubectl-kudo test 2>&1 \
cd operators && ./bin/kubectl-kudo test --artifacts-dir /tmp/kudo-e2e-test 2>&1 \
| tee /dev/fd/2 \
| go-junit-report -set-exit-code \
> ../reports/kudo_operators_test_report.xml
Expand All @@ -51,5 +51,5 @@ else
mkdir operators/bin/
cp ./bin/kubectl-kudo operators/bin/
cp ./bin/manager operators/bin/
cd operators && ./bin/kubectl-kudo test
cd operators && ./bin/kubectl-kudo test --artifacts-dir /tmp/kudo-e2e-test
fi
1 change: 1 addition & 0 deletions kudo-e2e-test.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ startKIND: true
kindContainers:
- kudobuilder/controller:%version%
timeout: 300
skipDelete: true

0 comments on commit 5a4cdc5

Please sign in to comment.