From d0b60c80859029f9b5e34e36fd2fedc33217b164 Mon Sep 17 00:00:00 2001 From: Aleksandr Shmaraiev Date: Mon, 29 Jan 2024 13:04:09 +0200 Subject: [PATCH] Add 'smoke-test' to OpenShift CI --- .ci/openshift-ci/test-che-smoke-test.sh | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .ci/openshift-ci/test-che-smoke-test.sh diff --git a/.ci/openshift-ci/test-che-smoke-test.sh b/.ci/openshift-ci/test-che-smoke-test.sh new file mode 100644 index 0000000000..b58289459e --- /dev/null +++ b/.ci/openshift-ci/test-che-smoke-test.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Copyright (c) 2024 Red Hat, Inc. +# This program and the accompanying materials are made +# available under the terms of the Eclipse Public License 2.0 +# which is available at https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# Red Hat, Inc. - initial API and implementation +# + +# exit immediately when a command fails +set -ex +# only exit with zero if all commands of the pipeline exit successfully +set -o pipefail + +export TEST_POD_NAME=${TEST_POD_NAME:-"che-smoke-test"} + +# import common test functions +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +source "${SCRIPT_DIR}"/common.sh + +trap "collectLogs" EXIT SIGINT + +provisionOpenShiftOAuthUser +createCustomResourcesFile +deployChe +startSmokeTest