13 lines
589 B
Bash
Executable File
13 lines
589 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -z "${DIREKTIV_TEST_URL}" ]]; then
|
|
echo "Test URL is not set, setting it to http://localhost:9191"
|
|
DIREKTIV_TEST_URL="http://localhost:9191"
|
|
fi
|
|
|
|
if [[ -z "${DIREKTIV_SECRET_export-xlsxSecret}" ]]; then
|
|
echo "Secret export-xlsxSecret is required, set it with DIREKTIV_SECRET_export-xlsxSecret"
|
|
exit 1
|
|
fi
|
|
|
|
docker run --network=host -v `pwd`/tests/:/tests direktiv/karate java -DtestURL=${DIREKTIV_TEST_URL} -Dlogback.configurationFile=/logging.xml -Dexport-xlsxSecret="${DIREKTIV_SECRET_export-xlsxSecret}" -jar /karate.jar /tests/v1.0/karate.yaml.test.feature ${*:1} |