Skip to content

Commit

Permalink
kokoro: source test driver install script from core repo (#4825)
Browse files Browse the repository at this point in the history
  • Loading branch information
temawi committed Oct 7, 2021
1 parent b9d7c74 commit 524d10c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 390 deletions.
13 changes: 8 additions & 5 deletions test/kokoro/xds_k8s.sh
Expand Up @@ -17,9 +17,7 @@ set -eo pipefail

# Constants
readonly GITHUB_REPOSITORY_NAME="grpc-go"
# GKE Cluster
readonly GKE_CLUSTER_NAME="interop-test-psm-sec-v2-us-central1-a"
readonly GKE_CLUSTER_ZONE="us-central1-a"
readonly TEST_DRIVER_INSTALL_SCRIPT_URL="https://raw.githubusercontent.com/${TEST_DRIVER_REPO_OWNER:-grpc}/grpc/${TEST_DRIVER_BRANCH:-master}/tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh"
## xDS test server/client Docker images
readonly SERVER_IMAGE_NAME="gcr.io/grpc-testing/xds-interop/go-server"
readonly CLIENT_IMAGE_NAME="gcr.io/grpc-testing/xds-interop/go-client"
Expand Down Expand Up @@ -134,8 +132,13 @@ run_test() {
main() {
local script_dir
script_dir="$(dirname "$0")"
# shellcheck source=test/kokoro/xds_k8s_install_test_driver.sh
source "${script_dir}/xds_k8s_install_test_driver.sh"

# Source the test driver from the master branch.
echo "Sourcing test driver install script from: ${TEST_DRIVER_INSTALL_SCRIPT_URL}"
source /dev/stdin <<< "$(curl -s "${TEST_DRIVER_INSTALL_SCRIPT_URL}")"

activate_gke_cluster GKE_CLUSTER_PSM_SECURITY

set -x
if [[ -n "${KOKORO_ARTIFACTS_DIR}" ]]; then
kokoro_setup_test_driver "${GITHUB_REPOSITORY_NAME}"
Expand Down

0 comments on commit 524d10c

Please sign in to comment.