forked from knative-extensions/eventing-kafka
-
Notifications
You must be signed in to change notification settings - Fork 5
/
e2e-tests.sh
executable file
·45 lines (30 loc) · 1.3 KB
/
e2e-tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
# shellcheck disable=SC1090
source "$(dirname "$0")/../vendor/knative.dev/hack/e2e-tests.sh"
source "$(dirname "$0")/e2e-common.sh"
set -Eeuox pipefail
export TEST_IMAGE_TEMPLATE="${EVENTING_KAFKA_TEST_IMAGE_TEMPLATE}"
################################################################################
# Fallback to midstream images if Serverless Operator doesn't provide the
# required Knative versions.
# Note: This currently affects only which Knative eventing version to install.
#
# Values:
# - True: Try to find the required knative version that matches current branch
# on ServerlessOperator. If not found, install the matching version
# version from midstream
# - False: Install the Knative version provided by the ServerlessOperator
# regardless of the version compatability.
################################################################################
fallback_to_kn_midstream=${1:-true}
env
scale_up_workers || exit 1
failed=0
(( !failed )) && install_strimzi || failed=1
(( !failed )) && install_serverless "$fallback_to_kn_midstream"|| failed=1
(( !failed )) && install_knative_kafka || failed=1
(( !failed )) && install_tracing || failed=1
(( !failed )) && run_e2e_tests || failed=1
(( failed )) && dump_cluster_state
(( failed )) && exit 1
success