forked from gardener/landscaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
integration-test
executable file
·21 lines (15 loc) · 978 Bytes
/
integration-test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors
#
# SPDX-License-Identifier: Apache-2.0
# Script executing the integration tests in the context of a Gardener Concourse pipeline job with access to the cc-config.
# It is called in case of a head-update of the master branch and a new release. The parameter "1", when calling ./.ci/int-test,
# is integrated in the test cluster name indicating that the tests were triggered by a head update commit or a new release.
# The cluster name has the format it-pr1-<4-digits>.
set -euo pipefail
PROJECT_ROOT="$(realpath $(dirname $0)/..)"
FULL_INTEGRATION_TEST_PATH="$(realpath "$INTEGRATION_TEST_PATH")"
VERSION="$("$PROJECT_ROOT/hack/get-version.sh")"
PR_ID=1
GARDENER_KUBECONFIG=$(${PROJECT_ROOT}/.ci/get_gardener_kubeconfig.py)
"${PROJECT_ROOT}/.ci/integration-test-runner" "$GARDENER_KUBECONFIG" "garden-laas" "$VERSION" "$PR_ID" | tee "$FULL_INTEGRATION_TEST_PATH/ttt.log"