Skip to content

Commit

Permalink
test: test enabled false in profile_default
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaeu committed Apr 19, 2024
1 parent 7ba9652 commit 65a866f
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

TESTROOT="$( cd "$(dirname "$0")"/.. >/dev/null 2>&1 ; pwd -P )"
source $TESTROOT/files/testfunctions.sh
source $TESTROOT/files/test.conf
prepareTest $(basename $0) $*

configPT=$(makeTempFile $(basename $0) "\
ors:
engine:
source_file: ors-api/src/test/files/heidelberg.osm.gz
profile_default:
enabled: false
profiles:
public-transport:
gtfs_file: ors-api/src/test/files/vrn_gtfs_cut.zip
")

podman run --replace --name "${CONTAINER}" -p "${HOST_PORT}":8082 \
-v "${M2_FOLDER}":/root/.m2 \
-v "${TESTROOT}/graphs_volume":"${CONTAINER_WORK_DIR}/graphs" \
-v "${configPT}":"${CONTAINER_WORK_DIR}/ors-config.yml" \
"local/${IMAGE}:latest" &

# expect process finished timout
res=$(expectOrsStartupFails 300 "$CONTAINER" )
# stop container if was not finished
cleanupTest

assertEquals "terminated" "$res"

0 comments on commit 65a866f

Please sign in to comment.