From 6b6dc1bacd9914219794dcc3a033c6558c04092d Mon Sep 17 00:00:00 2001 From: Todd Malsbary Date: Tue, 8 Sep 2020 11:31:52 -0700 Subject: Add plugin_fw.sh test for v2 and run as part of installer. To deploy to multiple clusters, set the KUD_PLUGIN_FW_CLUSTERS environment variable to the following format (an array of cluster data objects): [ { "metadata": { "name": "NAME", "description": "DESCRIPTION", "userData1": "USER_DATA_1", "userData2": "USER_DATA_2" }, "file": "KUBECONFIG_PATH" }, { ... } ] Issue-ID: MULTICLOUD-1217 Signed-off-by: Todd Malsbary Change-Id: I4c80fbcef1162b441c4dfba4ce2bfd3ac419bc25 --- kud/hosting_providers/containerized/installer.sh | 6 + kud/tests/plugin_fw_v2.sh | 1100 ++++++++++++++++++++++ 2 files changed, 1106 insertions(+) create mode 100755 kud/tests/plugin_fw_v2.sh diff --git a/kud/hosting_providers/containerized/installer.sh b/kud/hosting_providers/containerized/installer.sh index 45608a57..ae16b1dd 100755 --- a/kud/hosting_providers/containerized/installer.sh +++ b/kud/hosting_providers/containerized/installer.sh @@ -138,6 +138,12 @@ function install_addons { bash ${functional_test}.sh --external done ;; + "emco" ) + echo "Test the emco plugin installation" + for functional_test in plugin_fw_v2; do + bash ${functional_test}.sh --external + done + ;; esac popd done diff --git a/kud/tests/plugin_fw_v2.sh b/kud/tests/plugin_fw_v2.sh new file mode 100755 index 00000000..a54dd768 --- /dev/null +++ b/kud/tests/plugin_fw_v2.sh @@ -0,0 +1,1100 @@ +#!/bin/bash +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2020 +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +set -o errexit +set -o nounset +set -o pipefail + +source _common_test.sh +source _functions.sh +source _functions.sh + +kubeconfig_path="$HOME/.kube/config" + +clusters="${KUD_PLUGIN_FW_CLUSTERS:-$(cat <