Skip to content

Commit fc892c5

Browse files
committed
[NRL-1290] Comment out the custodian suffix integ tests as suffixes are disabled in the prototype
1 parent 9334483 commit fc892c5

File tree

2 files changed

+63
-62
lines changed

2 files changed

+63
-62
lines changed

tests/features/producer/readDocumentReference-failure.feature

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -100,44 +100,44 @@ Feature: Producer - readDocumentReference - Failure Scenarios
100100
}
101101
"""
102102

103-
Scenario: Read document reference by ID - custodian suffix mismatch
104-
Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
105-
And the organisation 'RX898.001' is authorised to access pointer types:
106-
| system | value |
107-
| http://snomed.info/sct | 736253002 |
108-
And the organisation 'RX898.002' is authorised to access pointer types:
109-
| system | value |
110-
| http://snomed.info/sct | 736253002 |
111-
And a DocumentReference resource exists with values:
112-
| property | value |
113-
| id | RX898.001-1234567890-CustSuffixMismatch |
114-
| subject | 9999999999 |
115-
| status | current |
116-
| type | 736253002 |
117-
| category | 734163000 |
118-
| contentType | application/pdf |
119-
| url | https://example.org/my-doc.pdf |
120-
| custodian | RX898.001 |
121-
| author | X26 |
122-
When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
123-
Then the response status code is 200
124-
When producer 'RX898.002' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
125-
Then the response status code is 403
126-
And the response is an OperationOutcome with 1 issue
127-
And the OperationOutcome contains the issue:
128-
"""
129-
{
130-
"severity": "error",
131-
"code": "forbidden",
132-
"details": {
133-
"coding": [
134-
{
135-
"system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
136-
"code": "AUTHOR_CREDENTIALS_ERROR",
137-
"display": "Author credentials error"
138-
}
139-
]
140-
},
141-
"diagnostics": "The requested DocumentReference cannot be read because it belongs to another organisation"
142-
}
143-
"""
103+
# Scenario: Read document reference by ID - custodian suffix mismatch
104+
# Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
105+
# And the organisation 'RX898.001' is authorised to access pointer types:
106+
# | system | value |
107+
# | http://snomed.info/sct | 736253002 |
108+
# And the organisation 'RX898.002' is authorised to access pointer types:
109+
# | system | value |
110+
# | http://snomed.info/sct | 736253002 |
111+
# And a DocumentReference resource exists with values:
112+
# | property | value |
113+
# | id | RX898.001-1234567890-CustSuffixMismatch |
114+
# | subject | 9999999999 |
115+
# | status | current |
116+
# | type | 736253002 |
117+
# | category | 734163000 |
118+
# | contentType | application/pdf |
119+
# | url | https://example.org/my-doc.pdf |
120+
# | custodian | RX898.001 |
121+
# | author | X26 |
122+
# When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
123+
# Then the response status code is 200
124+
# When producer 'RX898.002' reads a DocumentReference with ID 'RX898.001-1234567890-CustSuffixMismatch'
125+
# Then the response status code is 403
126+
# And the response is an OperationOutcome with 1 issue
127+
# And the OperationOutcome contains the issue:
128+
# """
129+
# {
130+
# "severity": "error",
131+
# "code": "forbidden",
132+
# "details": {
133+
# "coding": [
134+
# {
135+
# "system": "https://fhir.nhs.uk/ValueSet/Spine-ErrorOrWarningCode-1",
136+
# "code": "AUTHOR_CREDENTIALS_ERROR",
137+
# "display": "Author credentials error"
138+
# }
139+
# ]
140+
# },
141+
# "diagnostics": "The requested DocumentReference cannot be read because it belongs to another organisation"
142+
# }
143+
# """

tests/features/producer/readDocumentReference-success.feature

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -107,24 +107,25 @@ Feature: Producer - readDocumentReference - Success Scenarios
107107
}
108108
"""
109109

110-
Scenario: Read document reference by ID - custodian suffix
111-
Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
112-
And the organisation 'RX898.001' is authorised to access pointer types:
113-
| system | value |
114-
| http://snomed.info/sct | 736253002 |
115-
And the organisation 'RX898.002' is authorised to access pointer types:
116-
| system | value |
117-
| http://snomed.info/sct | 736253002 |
118-
And a DocumentReference resource exists with values:
119-
| property | value |
120-
| id | RX898.001-1234567890-ReadDocRefCustSuffix |
121-
| subject | 9999999999 |
122-
| status | current |
123-
| type | 736253002 |
124-
| category | 734163000 |
125-
| contentType | application/pdf |
126-
| url | https://example.org/my-doc.pdf |
127-
| custodian | RX898.001 |
128-
| author | HAR1 |
129-
When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-ReadDocRefCustSuffix'
130-
Then the response status code is 200
110+
# Scenario: Read document reference by ID - custodian suffix
111+
# Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API
112+
# And the organisation 'RX898.001' is authorised to access pointer types:
113+
# | system | value |
114+
# | http://snomed.info/sct | 736253002 |
115+
# And the organisation 'RX898.002' is authorised to access pointer types:
116+
# | system | value |
117+
# | http://snomed.info/sct | 736253002 |
118+
# And a DocumentReference resource exists with values:
119+
# | property | value |
120+
# | id | RX898.001-1234567890-ReadDocRefCustSuffix |
121+
# | subject | 9999999999 |
122+
# | status | current |
123+
# | type | 736253002 |
124+
# | category | 734163000 |
125+
# | contentType | application/pdf |
126+
# | url | https://example.org/my-doc.pdf |
127+
# | custodian | RX898.001 |
128+
# | author | HAR1 |
129+
# When producer 'RX898.001' reads a DocumentReference with ID 'RX898.001-1234567890-ReadDocRefCustSuffix'
130+
# Then the response status code is 200
131+
#

0 commit comments

Comments
 (0)