Skip to content

Commit

Permalink
Split model migration tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
ycliuhw committed Sep 20, 2022
1 parent 231abcd commit b8f0120
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
43 changes: 42 additions & 1 deletion tests/suites/model/migration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,51 @@ test_model_migration() {
cd .. || exit

run "run_model_migration"
)
}

test_model_migration_version() {
if [ -n "$(skip 'test_model_migration_version')" ]; then
echo "==> SKIP: Asked to skip model migration version tests"
return
fi

(
set_verbosity

cd .. || exit

run "run_model_migration_version"
)
}

test_model_migration_saas_common() {
if [ -n "$(skip 'test_model_migration_saas_common')" ]; then
echo "==> SKIP: Asked to skip model migration saas common tests"
return
fi

(
set_verbosity

cd .. || exit

run "run_model_migration_saas_common"
)
}

test_model_migration_saas_external() {
if [ -n "$(skip 'test_model_migration_saas_external')" ]; then
echo "==> SKIP: Asked to skip model migration saas external tests"
return
fi

(
set_verbosity

cd .. || exit

run "run_model_migration_saas_external"
run "run_model_migration_saas_consumer"
)
}

Expand Down
3 changes: 3 additions & 0 deletions tests/suites/model/task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ test_model() {
# Tests that need to be run are added here.
test_model_config
test_model_migration
test_model_migration_version
test_model_migration_saas_common
test_model_migration_saas_external
test_model_multi
test_model_metrics
test_model_destroy
Expand Down

0 comments on commit b8f0120

Please sign in to comment.