Format code in tests

This commit is contained in:
Tortue Torche 2021-09-14 13:56:45 +02:00
parent 979b6ca0c8
commit 5d2db6d563
2 changed files with 6 additions and 1 deletions

View File

@ -27,8 +27,13 @@
#
# Run tests locally:
# bash scripts/test.sh
#
# Debug in Docker:
# docker run -it -v $(pwd):/usr/local/bin:ro --rm --entrypoint bash $PSU_IMAGE:$PSU_TAG
#TRACE=true
#PSU_TRACE=true
#HTTPIE_VERIFY_SSL=no
CI_REGISTRY=localhost.com
CI_PROJECT_NAMESPACE=psuapp

View File

@ -14,7 +14,7 @@ fi
[[ "$TRACE" ]] && set -x
SWARM_NODE_NAME=${SWARM_NODE_NAME:-cluster}
SWARM_NODE_IP=${SWARM_NODE_IP:-$(getent hosts $SWARM_NODE_NAME | awk '{ print $1 }')}
SWARM_NODE_IP=${SWARM_NODE_IP:-$(getent hosts "${SWARM_NODE_NAME}" | awk '{ print $1 }')}
export BASE_DOMAIN="$SWARM_NODE_IP.nip.io"
export PSU_STACK_NAME="web-app"
PSU_URL="https://portainer.$BASE_DOMAIN"