mirror of https://github.com/knative/docs.git
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:
parent
b3bf007dc2
commit
54508a76d7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue