File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ if [[ $# -ne 1 ]]; then
2020 exit 1
2121fi
2222
23+ ENV=" ${ENV:- local} "
2324TEST_TYPE=" $1 "
2425
2526# Validate test type early
5051 COV_PATH=" src/gateway_api"
5152fi
5253
54+ # Note: TEST_PATH is intentionally unquoted to allow glob expansion for unit tests
5355if [[ " $ENV " = " remote" ]] && [[ " $TEST_TYPE " != " unit" ]]; then
54- # Note: TEST_PATH is intentionally unquoted to allow glob expansion for unit tests
55- poetry run pytest ${TEST_PATH} --env=" remote" -v \
56- --api-name=" ${PROXYGEN_API_NAME} " --proxy-name=" ${PROXYGEN_API_NAME} --internal-dev--${PROXYGEN_API_NAME} -pr-${PR_NUMBER} " \
57- --apigee-access-token=" ${APIGEE_ACCESS_TOKEN} " \
56+ poetry run pytest ${TEST_PATH} --env=" ${ENV} " -v \
57+ --api-name=" ${PROXYGEN_API_NAME} " \
58+ --proxy-name=" ${PROXYGEN_API_NAME} --internal-dev--${PROXYGEN_API_NAME} -pr-${PR_NUMBER} " \
5859 --cov=" ${COV_PATH} " \
5960 --cov-report=html:test-artefacts/coverage-html \
6061 --cov-report=term \
You can’t perform that action at this time.
0 commit comments