File tree 3 files changed +46
-4
lines changed
3 files changed +46
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
PROFILE=" $1 "
11
11
12
- ./run-tests-on-dbt-version.sh " run-integration-tests" " $PROFILE " " 1.3.3"
13
- ./run-tests-on-dbt-version.sh " run-integration-tests" " $PROFILE " " 1.4.5"
12
+ # Source the script that contains the run_tests function and versions
13
+ source ./run-tests-helper.sh
14
+
15
+ run_tests " run-integration-tests" " $PROFILE "
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ set -e
4
+
3
5
if [ -z " $1 " ]; then
4
6
echo ' Please provide profile name'
5
7
exit 1
6
8
fi
7
9
8
10
PROFILE=" $1 "
9
11
10
- ./run-tests-on-dbt-version.sh " run-jaffle-shop-tests" " $PROFILE " " 1.3.3"
11
- ./run-tests-on-dbt-version.sh " run-jaffle-shop-tests" " $PROFILE " " 1.4.0"
12
+ # Source the script that contains the run_tests function and versions
13
+ source ./run-tests-helper.sh
14
+
15
+ run_tests " run-jaffle-shop-tests" " $PROFILE "
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ function run_tests() {
4
+ local TEST_SUITE=$1
5
+ local PROFILE=$2
6
+
7
+ if [ " $PROFILE " == " postgres" ]; then
8
+ VERSIONS=" 1.3.3 1.4.0"
9
+ elif [ " $PROFILE " == " bigquery" ]; then
10
+ VERSIONS=" 1.3.2"
11
+ elif [ " $PROFILE " == " snowflake" ]; then
12
+ VERSIONS=" 1.3.1"
13
+ else
14
+ echo " Invalid profile name: $PROFILE "
15
+ exit 1
16
+ fi
17
+
18
+ if [ -z " $TEST_SUITE " ]; then
19
+ echo ' Please provide test suite name'
20
+ exit 1
21
+ fi
22
+
23
+ if [ -z " $PROFILE " ]; then
24
+ echo ' Please provide profile name'
25
+ exit 1
26
+ fi
27
+
28
+ if [ -z " $VERSIONS " ]; then
29
+ echo ' Please provide versions to test'
30
+ exit 1
31
+ fi
32
+
33
+ for DBT_VERSION in $VERSIONS ; do
34
+ ./run-tests-on-dbt-version.sh " $TEST_SUITE " " $PROFILE " " $DBT_VERSION "
35
+ done
36
+ }
You can’t perform that action at this time.
0 commit comments