Fix the broken E2E tests (#2716)

* DO NOT REVIEW: debug integration test

* Retain the cluster for debugging

* Skip installing Istio addon

* check if the CRD exists

* Fix the test script

* Switch to use Istio 1.5

* fix the format

* revert the golang change
This commit is contained in:
Zhimin Xiang 2020-07-30 16:43:00 -07:00 committed by GitHub
parent b3bf007dc2
commit 54508a76d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -16,13 +16,26 @@
source $(dirname $0)/../vendor/knative.dev/test-infra/scripts/e2e-tests.sh
function knative_setup() {
function install_istio() {
ISTIO_VERSION=$(curl https://raw.githubusercontent.com/knative/serving/master/third_party/istio-1.5-latest)
echo ">> Bringing up Istio"
echo ">> Running Istio CRD installer"
kubectl apply -f "https://raw.githubusercontent.com/knative/serving/master/third_party/${ISTIO_VERSION}/istio-crds.yaml" || return 1
wait_until_batch_job_complete istio-system || return 1
echo ">> Running Istio"
kubectl apply -f "https://raw.githubusercontent.com/knative/serving/master/third_party/${ISTIO_VERSION}/istio-ci-no-mesh.yaml" || return 1
wait_until_pods_running istio-system || return 1
}
function test_setup() {
install_istio
start_latest_knative_serving
}
# Script entry point.
initialize $@
initialize $@ --skip-istio-addon
go_test_e2e ./test/e2e || fail_test