From 6ba1c64259f5700812708a18b79dcbacb61019fe Mon Sep 17 00:00:00 2001 From: Rowan Gill Date: Fri, 17 May 2024 08:54:58 +0100 Subject: [PATCH] feature/PI-275-fix_connections adjusted sandbox proxy name --- scripts/infrastructure/apigee/proxygen.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/infrastructure/apigee/proxygen.sh b/scripts/infrastructure/apigee/proxygen.sh index 192ee0fbe..a26660f98 100644 --- a/scripts/infrastructure/apigee/proxygen.sh +++ b/scripts/infrastructure/apigee/proxygen.sh @@ -87,6 +87,7 @@ function generate_proxy(){ echo "proxy name must not contain '--'" exit 1 fi + # 2. Since we will prefix with 'connecting-party-manager-' # we cannot start with a hyphen either if [[ ${_workspace_name} == -* ]]; @@ -95,6 +96,12 @@ function generate_proxy(){ exit 1 fi + #3. Apigee services expect int-sandbox to be sandbox to match + if [[ ${_workspace_name} == "int-sandbox" ]]; + then + _workspace_name="sandbox" + fi + # Download the pem file if it does not exist if [ ! -f "${APIGEE_CONFIG_PATH}/${_apigee_stage}/.proxygen/private_key.pem" ]; then poetry run python ${PATH_TO_HERE}/download_pem.py ${_apigee_stage} ${APIGEE_DEPLOYMENT_ROLE}