Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dbt versions to fix pytz bug #125

Merged
merged 2 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions run-all-integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ fi

PROFILE="$1"

./run-tests-on-dbt-version.sh "run-integration-tests" "$PROFILE" "1.3.0"
./run-tests-on-dbt-version.sh "run-integration-tests" "$PROFILE" "1.4.0"
# Source the script that contains the run_tests function and versions
source ./run-tests-helper.sh

run_tests "run-integration-tests" "$PROFILE"
8 changes: 6 additions & 2 deletions run-all-jaffle-shop-tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#!/bin/bash

set -e

if [ -z "$1" ]; then
echo 'Please provide profile name'
exit 1
fi

PROFILE="$1"

./run-tests-on-dbt-version.sh "run-jaffle-shop-tests" "$PROFILE" "1.3.0"
./run-tests-on-dbt-version.sh "run-jaffle-shop-tests" "$PROFILE" "1.4.0"
# Source the script that contains the run_tests function and versions
source ./run-tests-helper.sh

run_tests "run-jaffle-shop-tests" "$PROFILE"
36 changes: 36 additions & 0 deletions run-tests-helper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

function run_tests() {
local TEST_SUITE=$1
local PROFILE=$2

if [ "$PROFILE" == "postgres" ]; then
VERSIONS="1.3.3 1.4.0"
elif [ "$PROFILE" == "bigquery" ]; then
VERSIONS="1.3.2"
elif [ "$PROFILE" == "snowflake" ]; then
VERSIONS="1.3.1"
else
echo "Invalid profile name: $PROFILE"
exit 1
fi

if [ -z "$TEST_SUITE" ]; then
echo 'Please provide test suite name'
exit 1
fi

if [ -z "$PROFILE" ]; then
echo 'Please provide profile name'
exit 1
fi

if [ -z "$VERSIONS" ]; then
echo 'Please provide versions to test'
exit 1
fi

for DBT_VERSION in $VERSIONS; do
./run-tests-on-dbt-version.sh "$TEST_SUITE" "$PROFILE" "$DBT_VERSION"
done
}