diff --git a/enos/templates/get-token.sh b/enos/templates/get-token.sh index 85b9b33d3..be1718506 100644 --- a/enos/templates/get-token.sh +++ b/enos/templates/get-token.sh @@ -21,8 +21,8 @@ function retry { return 0 } -# make sure the ALB is up and passing healthchecks -retry 10 curl -s -o /dev/null ${BOUNDARY_ADDR} +# make sure boundary is connected to DB (unauthenticated endpoint) +retry 10 ${BOUNDARY_PATH}/boundary auth-methods list > /dev/null export BP="${PASSWORD}" ${BOUNDARY_PATH}/boundary authenticate password -auth-method-id=${METHOD_ID} -login-name=${LOGIN_NAME} -password=env://BP -token-name=none -format=json -keyring-type=none