mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-12 02:24:15 +00:00
80bc2f2e42
* decode tokens with jwt instead of with base64 w/ burnettk * try to verify jwt token with keycloak when we decode it w/ burnettk * make the token algorithm a constant w/ burnettk * WIP: create more valid looking jwt from spiff w/ burnettk * tests are passsing now w/ burnettk * some pyl stuff w/ burnettk * fixed mypy issues w/ burnettk * fixed issues from mypy fixes w/ burnettk * do not load openid blueprint if not using those configs w/ burnettk * used the process instance to determine if guest user can use connector api w/ burnettk * only check the db for process instance if the api call is for typeahead * removed unused test code * pyl --------- Co-authored-by: jasquat <jasquat@users.noreply.github.com>
22 lines
801 B
Bash
Executable File
22 lines
801 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
function error_handler() {
|
|
echo >&2 "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
|
exit "$2"
|
|
}
|
|
trap 'error_handler ${LINENO} $?' ERR
|
|
set -o errtrace -o errexit -o nounset -o pipefail
|
|
|
|
if [[ ! -f ./src/instance/db_unit_testing_gw0.sqlite3 ]]; then
|
|
echo >&2 -e "ERROR: please run the following command first in order to set up and migrate the sqlite unit_testing database:\n\n\tSPIFFWORKFLOW_BACKEND_DATABASE_TYPE=sqlite ./bin/recreate_db clean"
|
|
exit 1
|
|
fi
|
|
|
|
# check if python package pytest-xdist is installed
|
|
if ! poetry run python -c "import xdist" &>/dev/null; then
|
|
echo >&2 -e "ERROR: please install the python package pytest-xdist by running poetry install"
|
|
exit 1
|
|
fi
|
|
|
|
SPIFFWORKFLOW_BACKEND_DATABASE_TYPE=sqlite poet test -n auto -x --random-order
|