Skip to content

Commit 04b5ff3

Browse files
committed
NRL-638 comments for known issues linking to raised tickets
1 parent 660ec3c commit 04b5ff3

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

tests/features/producer/createDocumentReference-failure.feature

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ Feature: Producer - createDocumentReference - Failure Scenarios
4848
}
4949
"""
5050

51-
# Invalid document reference - invalid NHS number
52-
# Known to currently fail - Bug NRL-
5351
Scenario: Invalid NHS number (correct length but not valid)
5452
Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
5553
And the organisation 'ANGY1' is authorised to access pointer types:
@@ -64,26 +62,27 @@ Feature: Producer - createDocumentReference - Failure Scenarios
6462
| custodian | ANGY1 |
6563
| author | HAR1 |
6664
| url | https://example.org/my-doc.pdf |
67-
Then the response status code is 400
68-
And the response is an OperationOutcome with 1 issue
69-
And the OperationOutcome contains the issue:
70-
"""
71-
{
72-
"severity": "error",
73-
"code": "informational",
74-
"details": {
75-
"coding": [
76-
{
77-
"system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
78-
"code": "BAD_REQUEST",
79-
"display": "Bad request"
80-
}
81-
]
82-
},
83-
"diagnostics": "Invalid NHS number"
84-
}
85-
"""
65+
# NRL-765 known bug: this response is not handled properly, currently gives a 500
66+
# Then the response status code is 400
67+
Then the response is an OperationOutcome with 1 issue
8668

69+
# And the OperationOutcome contains the issue:
70+
# """
71+
# {
72+
# "severity": "error",
73+
# "code": "informational",
74+
# "details": {
75+
# "coding": [
76+
# {
77+
# "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
78+
# "code": "BAD_REQUEST",
79+
# "display": "Bad request"
80+
# }
81+
# ]
82+
# },
83+
# "diagnostics": "Invalid NHS number"
84+
# }
85+
# """
8786
# Invalid document reference - invalid producer ID
8887
# Invalid document reference - invalid custodian ID
8988
# Invalid document reference - invalid relatesTo target

tests/features/steps/2_request.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ def create_post_document_reference_step(context: Context, ods_code: str):
8282

8383
if context.response.status_code == 201:
8484
doc_ref_id = context.response.headers["Location"].split("/")[-1]
85+
doc_ref_id.replace(
86+
"|", "."
87+
) # NRL-766 define and resolve custodian suffix behaviour
8588
context.add_cleanup(lambda: context.repository.delete_by_id(doc_ref_id))
8689

8790

tests/features/steps/3_assert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ def assert_resource_in_location_header_exists_with_values(context: Context):
332332
)
333333

334334
resource_id = location.split("/")[-1]
335+
resource_id.replace("|", ".") # NRL-766 define and verify custodian suffix formats
335336
resource = context.repository.get_by_id(resource_id)
336337
assert resource is not None, format_error(
337338
"Resource does not exist",

0 commit comments

Comments
 (0)