Skip to content

Commit 185ecdb

Browse files
committed
VED-812: Set proxy name and service base path according to the environment.
1 parent 0806304 commit 185ecdb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/run-e2e-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ env:
3737
APIGEE_ENVIRONMENT: ${{ inputs.apigee_environment }}
3838
ENVIRONMENT: ${{ inputs.environment }}
3939
SUB_ENVIRONMENT: ${{ inputs.sub_environment }}
40-
# TODO - handle PR deployments
41-
SERVICE_BASE_PATH: "immunisation-fhir-api/FHIR/R4"
40+
SERVICE_BASE_PATH: ${{ startsWith(inputs.sub_environment, 'pr-') && format("immunisation-fhir-api/FHIR/R4-{0}", inputs.sub_environment) || "immunisation-fhir-api/FHIR/R4" }}
41+
PROXY_NAME: ${{ startsWith(inputs.sub_environment, 'pr-') && format("immunisation-fhir-api-{0}", inputs.sub_environment) || format("immunisation-fhir-api-{0}", inputs.apigee_environment) }}
4242
STATUS_API_KEY: ${{ secrets.STATUS_API_KEY }}
4343

4444
permissions:
@@ -160,8 +160,6 @@ jobs:
160160
working-directory: e2e
161161
env:
162162
SOURCE_COMMIT_ID: ${{ github.sha }}
163-
# TODO - handle PR deployments
164-
PROXY_NAME: "immunisation-fhir-api-internal-dev"
165163
run: |
166164
poetry run python -m unittest -c -v
167165

0 commit comments

Comments
 (0)