Skip to content

Commit 5acb3fc

Browse files
committed
[feature/PI-534-errors_without_fhir] update error message
1 parent 409069f commit 5acb3fc

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

src/api/tests/feature_tests/features/createCpmProduct.failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ Feature: Create CPM Product - failure scenarios
101101
| path | value |
102102
| product_name | My Great Product |
103103
Then I receive a status code "404" with body
104-
| path | value |
105-
| errors.0.code | RESOURCE_NOT_FOUND |
104+
| path | value |
105+
| errors.0.code | RESOURCE_NOT_FOUND |
106106
| errors.0.message | Could not find ProductTeam for key ('f9518c12-6c83-4544-97db-d9dd1d64da97') |
107107
And the response headers contain:
108108
| name | value |
109109
| Content-Type | application/json |
110-
| Content-Length | 128 |
110+
| Content-Length | 134 |

src/api/tests/feature_tests/features/createCpmProductForEpr.failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ Feature: Create CPM Product for EPR - failure scenarios
101101
| path | value |
102102
| product_name | My Great Product |
103103
Then I receive a status code "404" with body
104-
| path | value |
105-
| errors.0.code | RESOURCE_NOT_FOUND |
104+
| path | value |
105+
| errors.0.code | RESOURCE_NOT_FOUND |
106106
| errors.0.message | Could not find ProductTeam for key ('${ uuid(1) }') |
107107
And the response headers contain:
108108
| name | value |
109109
| Content-Type | application/json |
110-
| Content-Length | 128 |
110+
| Content-Length | 134 |

src/api/tests/feature_tests/features/createDevice.failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,10 @@ Feature: Create Device - failure scenarios
293293
| owner.identifier.system | connecting-party-manager/product-team-id |
294294
| owner.identifier.value | ${ uuid(1) } |
295295
Then I receive a status code "404" with body
296-
| path | value |
297-
| errors.0.code | RESOURCE_NOT_FOUND |
296+
| path | value |
297+
| errors.0.code | RESOURCE_NOT_FOUND |
298298
| errors.0.message | Could not find ProductTeam for key ('${ uuid(1) }') |
299299
And the response headers contain:
300300
| name | value |
301301
| Content-Type | application/json |
302-
| Content-Length | 128 |
302+
| Content-Length | 134 |

src/api/tests/feature_tests/features/deleteCpmProduct.failure.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Feature: Delete CPM Product - failure scenarios
2727
And the response headers contain:
2828
| name | value |
2929
| Content-Type | application/json |
30-
| Content-Length | 95 |
30+
| Content-Length | 101 |
3131

3232
Scenario: Unknown Product ID
3333
Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
@@ -46,4 +46,4 @@ Feature: Delete CPM Product - failure scenarios
4646
And the response headers contain:
4747
| name | value |
4848
| Content-Type | application/json |
49-
| Content-Length | 138 |
49+
| Content-Length | 146 |

src/api/tests/feature_tests/features/readCpmProduct.failure.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Feature: Read CPM Product - failure scenarios
2121
| product_name | My Great CpmProduct |
2222
When I make a "GET" request with "default" headers to the id in the location response header to the endpoint prefix "ProductTeam/123/Product/<id>"
2323
Then I receive a status code "404" with body
24-
| path | value |
25-
| errors.0.code | RESOURCE_NOT_FOUND |
24+
| path | value |
25+
| errors.0.code | RESOURCE_NOT_FOUND |
2626
| errors.0.message | Could not find ProductTeam for key ('123') |
2727
And the response headers contain:
2828
| name | value |
2929
| Content-Type | application/json |
30-
| Content-Length | 95 |
30+
| Content-Length | 101 |
3131

3232
Scenario: Unknown Product ID
3333
Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
@@ -40,10 +40,10 @@ Feature: Read CPM Product - failure scenarios
4040
| partOf.identifier.value | F5H1R |
4141
When I make a "GET" request with "default" headers to "ProductTeam/f9518c12-6c83-4544-97db-d9dd1d64da97/Product/P.XXX.YYY"
4242
Then I receive a status code "404" with body
43-
| path | value |
44-
| errors.0.code | RESOURCE_NOT_FOUND |
43+
| path | value |
44+
| errors.0.code | RESOURCE_NOT_FOUND |
4545
| errors.0.message | Could not find CpmProduct for key ('f9518c12-6c83-4544-97db-d9dd1d64da97', 'P.XXX.YYY') |
4646
And the response headers contain:
4747
| name | value |
4848
| Content-Type | application/json |
49-
| Content-Length | 138 |
49+
| Content-Length | 146 |

src/api/tests/feature_tests/features/readDevice.failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Feature: Read Device - failure scenarios
1010
Scenario: Unknown Device
1111
When I make a "GET" request with "default" headers to "Device/f9518c12-6c83-4544-97db-d9dd1d64da97"
1212
Then I receive a status code "404" with body
13-
| path | value |
14-
| errors.0.code | RESOURCE_NOT_FOUND |
13+
| path | value |
14+
| errors.0.code | RESOURCE_NOT_FOUND |
1515
| errors.0.message | Could not find Device for key ('f9518c12-6c83-4544-97db-d9dd1d64da97') |
1616
And the response headers contain:
1717
| name | value |
1818
| Content-Type | application/json |
19-
| Content-Length | 128 |
19+
| Content-Length | 129 |

src/api/tests/feature_tests/features/readProductTeam.failure.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Feature: Read Product Team - failure scenarios
1010
Scenario: Unknown Product Team
1111
When I make a "GET" request with "default" headers to "ProductTeam/f9518c12-6c83-4544-97db-d9dd1d64da97"
1212
Then I receive a status code "404" with body
13-
| path | value |
14-
| errors.0.code | RESOURCE_NOT_FOUND |
13+
| path | value |
14+
| errors.0.code | RESOURCE_NOT_FOUND |
1515
| errors.0.message | Could not find ProductTeam for key ('f9518c12-6c83-4544-97db-d9dd1d64da97') |
1616
And the response headers contain:
1717
| name | value |
1818
| Content-Type | application/json |
19-
| Content-Length | 128 |
19+
| Content-Length | 134 |

0 commit comments

Comments
 (0)