diff --git a/bin/order.sh b/bin/order.sh index 6d35cdf..1df2926 100755 --- a/bin/order.sh +++ b/bin/order.sh @@ -74,8 +74,8 @@ request() { --header "Accept: application/json"\ --header "Content-Type: application/json" \ --data "${data}" \ - -w '\n%output{'$HTTP_CODE_FILE'}%{http_code}' \ - "$@" + -w '%{stderr}%{http_code}' \ + "$@" 2>$HTTP_CODE_FILE set +x http_code=$(cat "$HTTP_CODE_FILE") diff --git a/test/run.sh b/test/run.sh index abc2788..69a77cf 100755 --- a/test/run.sh +++ b/test/run.sh @@ -6,7 +6,7 @@ SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE}") && pwd -P) DISTRO="${1}" -scripts="check.sh;list.sh" +scripts="check.sh;list.sh;order.sh --dry-run -i dedicated_datacenter=rbx -i region=europe" echo "> Building image for ${DISTRO}" docker build -t "${DISTRO}-test" -f "${SCRIPT_DIR}/Dockerfile.${DISTRO}" .