From eb856fda13410baeaac638ece1f714460844f48e Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Sat, 11 May 2019 13:46:24 +0300 Subject: [PATCH] Add SMI Istio e2e tests --- .circleci/config.yml | 9 +++++++++ test/e2e-smi-istio-build.sh | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100755 test/e2e-smi-istio-build.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index f9164539..9b73ca51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,6 +9,15 @@ jobs: - run: test/e2e-build.sh - run: test/e2e-tests.sh + e2e-smi-istio-testing: + machine: true + steps: + - checkout + - run: test/e2e-kind.sh + - run: test/e2e-istio.sh + - run: test/e2e-smi-istio-build.sh + - run: test/e2e-tests.sh canary + e2e-supergloo-testing: machine: true steps: diff --git a/test/e2e-smi-istio-build.sh b/test/e2e-smi-istio-build.sh new file mode 100755 index 00000000..06b28ff1 --- /dev/null +++ b/test/e2e-smi-istio-build.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +set -o errexit + +REPO_ROOT=$(git rev-parse --show-toplevel) +export KUBECONFIG="$(kind get kubeconfig-path --name="kind")" + +echo '>>> Building Flagger' +cd ${REPO_ROOT} && docker build -t test/flagger:latest . -f Dockerfile + +kind load docker-image test/flagger:latest + +echo '>>> Installing Flagger' +helm upgrade -i flagger ${REPO_ROOT}/charts/flagger \ +--wait \ +--namespace istio-system \ +--set meshProvider=smi:istio + +kubectl -n istio-system set image deployment/flagger flagger=test/flagger:latest + +kubectl -n istio-system rollout status deployment/flagger + +echo '>>> Installing the SMI Istio adapter' +kubectl apply -f ${REPO_ROOT}/artifacts/smi/istio-adapter.yaml + +kubectl -n istio-system rollout status deployment/smi-adapter-istio \ No newline at end of file