|
| 1 | +Feature: Consumer - HEAD Requests |
| 2 | + |
| 3 | + Scenario Outline: DocumentReference with HEAD fails (Content-Type: <content_type>) |
| 4 | + Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API |
| 5 | + When consumer 'RX898' sends HEAD request to 'DocumentReference' endpoint with headers: |
| 6 | + | header | value | |
| 7 | + | Content-Type | <content_type> | |
| 8 | + Then the response status code is 405 |
| 9 | + And the response has an empty body |
| 10 | + And the Allow header is 'GET' |
| 11 | + And the Content-Length header is '0' |
| 12 | + |
| 13 | + Examples: |
| 14 | + | content_type | |
| 15 | + | application/json | |
| 16 | + | application/json+fhir | |
| 17 | + | application/fhir+json | |
| 18 | + |
| 19 | + Scenario Outline: DocumentReference/{id} with HEAD fails (Content-Type: <content_type>) |
| 20 | + Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API |
| 21 | + When consumer 'RX898' sends HEAD request to 'DocumentReference/random-id' endpoint with headers: |
| 22 | + | header | value | |
| 23 | + | Content-Type | <content_type> | |
| 24 | + Then the response status code is 405 |
| 25 | + And the response has an empty body |
| 26 | + And the Allow header is 'GET' |
| 27 | + And the Content-Length header is '0' |
| 28 | + |
| 29 | + Examples: |
| 30 | + | content_type | |
| 31 | + | application/json | |
| 32 | + | application/json+fhir | |
| 33 | + | application/fhir+json | |
| 34 | + |
| 35 | + Scenario Outline: DocumentReference with HEAD fails with 415 with unsupported (Content-Type: <content_type>) |
| 36 | + Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API |
| 37 | + When consumer 'RX898' sends HEAD request to 'DocumentReference' endpoint with headers: |
| 38 | + | header | value | |
| 39 | + | Content-Type | <content_type> | |
| 40 | + Then the response status code is 415 |
| 41 | + And the Content-Type header is 'application/json' |
| 42 | + And the Content-Length header is '0' |
| 43 | + And the Allow header is not present |
| 44 | + |
| 45 | + Examples: |
| 46 | + | content_type | |
| 47 | + | application/notsupported | |
| 48 | + | application/helloworld | |
| 49 | + | application/harold | |
| 50 | + |
| 51 | + Scenario Outline: DocumentReference/{id} with HEAD fails (Content-Type: <content_type>) |
| 52 | + Given the application 'DataShare' (ID 'z00z-y11y-x22x') is registered to access the API |
| 53 | + When consumer 'RX898' sends HEAD request to 'DocumentReference/random-id' endpoint with headers: |
| 54 | + | header | value | |
| 55 | + | Content-Type | <content_type> | |
| 56 | + Then the response status code is 415 |
| 57 | + And the response has an empty body |
| 58 | + And the Content-Type header is 'application/json' |
| 59 | + And the Content-Length header is '0' |
| 60 | + And the Allow header is not present |
| 61 | + |
| 62 | + Examples: |
| 63 | + | content_type | |
| 64 | + | application/notsupported | |
| 65 | + | application/helloworld | |
| 66 | + | application/harold | |
0 commit comments