-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbedfd6
commit 5f31c6d
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#/bin/bash | ||
|
||
set -e | ||
|
||
run_tracetest() { | ||
test_file=$1 | ||
|
||
tracetest -c ./cli-config.yml test run -d $test_file -w | ||
return $? | ||
} | ||
|
||
run_tracetest_with_env() { | ||
test_file=$1 | ||
env_file=$2 | ||
|
||
tracetest -c ./cli-config.yml test run -d $test_file --environment $env_file -w | ||
return $? | ||
} | ||
|
||
echo "Starting tests..." | ||
|
||
EXIT_STATUS=0 | ||
|
||
# run business tests | ||
run_tracetest_with_env ./business-tests/user-purchase.yaml ./business-tests/environment-vars.yaml || EXIT_STATUS=$? | ||
|
||
# run tech based tests | ||
run_tracetest ./tech-based-tests/ad-get.yaml || EXIT_STATUS=$? | ||
run_tracetest ./tech-based-tests/currency-convert.yaml || EXIT_STATUS=$? | ||
run_tracetest ./tech-based-tests/currency-supported.yaml || EXIT_STATUS=$? | ||
|
||
echo "" | ||
echo "Tests done! Exit code: $EXIT_STATUS" | ||
|
||
exit $EXIT_STATUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ spec: | |
strategy: periodic | ||
default: true | ||
periodic: | ||
retryDelay: 5s | ||
retryDelay: 10s | ||
timeout: 10m | ||
|
||
--- | ||
|