Skip to content

Commit 74783a8

Browse files
committed
[NDR-423] Removed MTLS 500 error test
1 parent 9f3826c commit 74783a8

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

lambdas/tests/e2e/api/fhir/test_mtls_api_failure.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -83,26 +83,6 @@ def test_unsupported_http_method_returns_fhir_error(http_method):
8383
)
8484

8585

86-
# Commented this out for now as this will no longer retunr a 500 but now a 400
87-
# invalid and I can't think of a way to get it to return a 500. Definietly something that needs to be tested though.
88-
#
89-
# def test_5xx_response_is_fhir_compliant(test_data):
90-
# """Verify that a Lambda error returns a FHIR-compliant OperationOutcome via DEFAULT_5XX."""
91-
#
92-
# reversed_id = f"{str(uuid.uuid4())}~{pdm_data_helper.snomed_code}"
93-
#
94-
# response = get_pdm_document_reference(
95-
# endpoint_override=reversed_id,
96-
# )
97-
#
98-
# assert response.status_code == 500
99-
# body = response.json()
100-
# assert body["resourceType"] == "OperationOutcome"
101-
# assert len(body["issue"]) > 0
102-
# issue = body["issue"][0]
103-
# assert issue["severity"] == "error"
104-
105-
10686
def test_mtls_invalid_common_name():
10787
record_id = str(uuid.uuid4())
10888
response = get_pdm_document_reference(

0 commit comments

Comments
 (0)