From 09dc9736e09b26c57a8b13ea83c173b15fc61e0a Mon Sep 17 00:00:00 2001 From: Dave Protasowski Date: Mon, 26 Oct 2026 22:25:23 -0400 Subject: [PATCH] Remove retired docs E2E test scaffolding --- test/README.md | 27 ++++----------------------- test/e2e-tests.sh | 36 ------------------------------------ test/e2e/main.go | 19 ------------------- 3 files changed, 4 insertions(+), 78 deletions(-) delete mode 100755 test/e2e-tests.sh delete mode 100644 test/e2e/main.go diff --git a/test/README.md b/test/README.md index e9f7db5e4ee..a143bc0c056 100644 --- a/test/README.md +++ b/test/README.md @@ -6,35 +6,16 @@ _build: # Test -This directory contains tests and testing docs. +This directory contains repository tests and presubmit helpers. -- [Unit tests](#running-unit-tests) currently reside in the codebase alongside - the code they test -- [End-to-end tests](#running-end-to-end-tests) +## Running Go tests -## Running unit tests - -TODO(#66): Write real unit tests. - -## Running end-to-end tests - -### Dependencies - -You might need to install `kubetest` in order to run the end-to-end tests -locally: +From the repository root: ```bash -go get -u k8s.io/test-infra/kubetest +go test ./... ``` -Simply run the `e2e-tests.sh` script, setting `$PROJECT_ID` first to your GCP -project. The script will create a GKE cluster, install Knative, run the -end-to-end tests and delete the cluster. - -If you already have a cluster set, ensure that `$PROJECT_ID` is empty and call -the script with the `--run-tests` argument. Note that this requires you to have -Knative Build installed and configured to your particular configuration setup. - --- Except as otherwise noted, the content of this page is licensed under the diff --git a/test/e2e-tests.sh b/test/e2e-tests.sh deleted file mode 100755 index 88398ddef32..00000000000 --- a/test/e2e-tests.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -# Copyright 2019 The Knative Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -source $(dirname $0)/../vendor/knative.dev/hack/e2e-tests.sh - -function install_istio() { - echo ">> Bringing up Istio" - curl -sL https://istio.io/downloadIstioctl | sh - - $HOME/.istioctl/bin/istioctl install -y -} - -function test_setup() { - install_istio - start_latest_knative_serving -} - -# Script entry point. - -initialize $@ --skip-istio-addon - -go_test_e2e ./test/e2e || fail_test - -success diff --git a/test/e2e/main.go b/test/e2e/main.go deleted file mode 100644 index cf3662481cd..00000000000 --- a/test/e2e/main.go +++ /dev/null @@ -1,19 +0,0 @@ -/* -Copyright 2019 The Knative Authors - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Temporarily have an empty package here until we remove the prow jobs -// https://github.com/knative/test-infra/pull/2891 -package e2e