mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* fn: test scripts should use well defined ports Moved allocation of listener ports for mysql/minio/postgres to helper script with a list of service list names. * fn: makefile docker pull mysql version must match tests
28 lines
739 B
Bash
Executable File
28 lines
739 B
Bash
Executable File
#!/bin/bash
|
|
set -exo pipefail
|
|
|
|
export CONTEXT="fn_system_tests"
|
|
source ./helpers.sh
|
|
remove_containers ${CONTEXT}
|
|
|
|
DB_NAME=$1
|
|
export FN_DB_URL=$(spawn_${DB_NAME} ${CONTEXT})
|
|
|
|
# avoid port conflicts with api_test.sh which are run in parallel
|
|
export FN_API_URL="http://localhost:8085"
|
|
export FN_DS_DB_PING_MAX_RETRIES=60
|
|
|
|
# pure runner and LB agent required settings below
|
|
export FN_MAX_REQUEST_SIZE=6291456
|
|
export FN_MAX_RESPONSE_SIZE=6291456
|
|
export FN_ENABLE_NB_RESOURCE_TRACKER=1
|
|
|
|
#
|
|
# dump prometheus metrics to this file
|
|
#
|
|
export SYSTEM_TEST_PROMETHEUS_FILE=./prometheus.${DB_NAME}.txt
|
|
|
|
cd test/fn-system-tests && FN_DB_URL=${FN_DB_URL} FN_API_URL=${FN_API_URL} go test -v -parallel ${2:-1} ./...; cd ../../
|
|
|
|
remove_containers ${CONTEXT}
|