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/tests/plugin_fw_v2.sh | 1100 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1100 insertions(+) create mode 100755 kud/tests/plugin_fw_v2.sh (limited to 'kud/tests') 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 <