Skip to content

Commit f855f0c

Browse files
committed
fix sandbox url
1 parent e482e2b commit f855f0c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

features/environment.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,22 +136,24 @@ def get_url_with_pr(context, env, product):
136136
assert PULL_REQUEST_ID is not None
137137
if product == "EPS-FHIR":
138138
context.eps_fhir_base_url = os.path.join(
139-
INTERNAL_DEV_BASE_URL, f"{EPS_FHIR_SUFFIX}-{PULL_REQUEST_ID}"
139+
select_apigee_base_url(env), f"{EPS_FHIR_SUFFIX}-{PULL_REQUEST_ID}"
140140
)
141141
if product in ["EPS-FHIR-PRESCRIBING", "EPS-FHIR-DISPENSING"]:
142142
context.eps_fhir_prescribing_base_url = os.path.join(
143-
INTERNAL_DEV_BASE_URL, f"{EPS_FHIR_PRESCRIBING_SUFFIX}-{PULL_REQUEST_ID}"
143+
select_apigee_base_url(env),
144+
f"{EPS_FHIR_PRESCRIBING_SUFFIX}-{PULL_REQUEST_ID}",
144145
)
145146
context.eps_fhir_dispensing_base_url = os.path.join(
146-
INTERNAL_DEV_BASE_URL, f"{EPS_FHIR_DISPENSING_SUFFIX}-{PULL_REQUEST_ID}"
147+
select_apigee_base_url(env),
148+
f"{EPS_FHIR_DISPENSING_SUFFIX}-{PULL_REQUEST_ID}",
147149
)
148150
if product == "PFP-APIGEE":
149151
context.pfp_base_url = os.path.join(
150-
INTERNAL_DEV_BASE_URL, f"{PFP_SUFFIX}-{PULL_REQUEST_ID}"
152+
select_apigee_base_url(env), f"{PFP_SUFFIX}-{PULL_REQUEST_ID}"
151153
)
152154
if product == "PSU":
153155
context.psu_base_url = os.path.join(
154-
INTERNAL_DEV_BASE_URL, f"{PSU_SUFFIX}-{PULL_REQUEST_ID}"
156+
select_apigee_base_url(env), f"{PSU_SUFFIX}-{PULL_REQUEST_ID}"
155157
)
156158
if product == "PFP-AWS":
157159
handle_pfp_aws_pr_url(context, env)

0 commit comments

Comments
 (0)