Skip to content

Commit 7b6861c

Browse files
adds logging
1 parent a4eeb80 commit 7b6861c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

proxies/live/apiproxy/targets/ers-target.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
</Step>
151151
<Condition>(raisefault.RaiseFault.CheckAllowlistFailed.failed = true) and (validation.statusCode = 400)</Condition>
152152
</FaultRule>
153-
<FaultRule name="single_asid_app_misconfigured">
153+
<FaultRule name="euo_allowlist_internal_error">
154154
<Step>
155155
<Condition>(isFhirR4Path = false)</Condition>
156156
<Name>AssignMessage.InternalServerError</Name>
@@ -181,7 +181,7 @@
181181
<Step>
182182
<Name>OauthV2.VerifyAccessToken</Name>
183183
</Step>
184-
<!-- Must be placed after Authentication -->
184+
<!-- https://nhsd-jira.digital.nhs.uk/browse/ERSSUP-86126 Single ASID Per Connecting Party. Only for user-restricted, excludes Practitioner Role endpoint which should be accessible without -->
185185
<Step>
186186
<Name>FlowCallout.ExtendedAttributes</Name>
187187
<Condition>(accesstoken.auth_type == "user") and (proxy.pathsuffix != "/FHIR/R4/PractitionerRole")</Condition>

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ async def _make_product(product_scopes, additional_attributes=None):
262262
]
263263

264264
if additional_attributes is not None:
265+
print(f"Adding additional attributes: {additional_attributes}")
265266
attributes.extend(additional_attributes)
267+
print(f"Attributes now: {attributes}")
266268

267269
body = {
268270
"proxies": proxies,
@@ -316,6 +318,7 @@ async def _make_app(product, custom_attributes={}):
316318
{"name": key, "value": value} for key, value in custom_attributes.items()
317319
]
318320
attributes.append({"name": "DisplayName", "value": app_name})
321+
print(f"App attributes: {attributes}")
319322

320323
body = {
321324
"apiProducts": [product],

tests/integration/test_user_restricted.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class TestUserRestricted:
3838
async def test_user_restricted_valid_ods_code(
3939
self,
4040
authenticate_user,
41+
referring_clinician,
4142
endpoint_url,
4243
is_fhir_4,
4344
service_url,
@@ -82,6 +83,7 @@ async def test_user_restricted_invalid_ods_code(
8283
self,
8384
authenticate_user,
8485
endpoint_url,
86+
referring_clinician_insufficient_ial,
8587
is_fhir_4,
8688
service_url,
8789
update_user_restricted_product,

0 commit comments

Comments
 (0)