From e812c437fecbae11f82fafeca05462bc583151f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Mon, 14 Aug 2023 16:59:41 +0200 Subject: [PATCH] tests: kata-deploy: Add functional/kata-deploy/gha-run.sh placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Right now this file does nothing, as it's not even called by any GHA. However, it'll be populated later on as part of a different series, where we'll have kata-deploy specific tests running here. Signed-off-by: Fabiano FidĂȘncio (cherry picked from commit 831e73ff918430985adf51c9dc9cbfce66505965) --- tests/functional/kata-deploy/gha-run.sh | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 tests/functional/kata-deploy/gha-run.sh diff --git a/tests/functional/kata-deploy/gha-run.sh b/tests/functional/kata-deploy/gha-run.sh new file mode 100755 index 0000000000..ef362f40e0 --- /dev/null +++ b/tests/functional/kata-deploy/gha-run.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# Copyright (c) 2023 Microsoft Corporation +# Copyright (c) 2023 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 + +set -o errexit +set -o nounset +set -o pipefail + +kata_deploy_dir="$(dirname "$(readlink -f "$0")")" +source "$kata_deploy_dir}/../../gha-run-k8s-common.sh" +tools_dir="${repo_root_dir}/tools" + +function run_tests() { + return 0 +} + +function main() { + export KATA_HOST_OS="${KATA_HOST_OS:-}" + + action="${1:-}" + + case "${action}" in + install-azure-cli) install_azure_cli ;; + login-azure) login_azure ;; + create-cluster) create_cluster ;; + install-bats) install_bats ;; + install-kubectl) install_kubectl ;; + get-cluster-credentials) get_cluster_credentials ;; + run-tests) run_tests ;; + delete-cluster) cleanup "aks" ;; + *) >&2 echo "Invalid argument"; exit 2 ;; + esac +} + +main "$@"