Skip to content

Commit

Permalink
feature/PI-643-add_status_to_drd Update feature tests
Browse files Browse the repository at this point in the history
  • Loading branch information
megan-bower4 committed Nov 22, 2024
1 parent 3646a59 commit bb31794
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Feature: Read Device Reference Data - success scenarios
| path | value |
| id | ${ note(device_reference_data_id) } |
| name | My Device Reference Data |
| status | active |
| product_id | ${ note(product_id) } |
| product_team_id | ${ note(product_team_id) } |
| ods_code | F5H1R |
Expand All @@ -38,7 +39,7 @@ Feature: Read Device Reference Data - success scenarios
And the response headers contain:
| name | value |
| Content-Type | application/json |
| Content-Length | 316 |
| Content-Length | 336 |

Examples:
| product_team_id |
Expand Down Expand Up @@ -67,6 +68,7 @@ Feature: Read Device Reference Data - success scenarios
| path | value |
| id | ${ note(device_reference_data_id) } |
| name | My Device Reference Data |
| status | active |
| product_id | ${ note(product_id) } |
| product_team_id | ${ note(product_team_id) } |
| ods_code | F5H1R |
Expand All @@ -77,7 +79,7 @@ Feature: Read Device Reference Data - success scenarios
And the response headers contain:
| name | value |
| Content-Type | application/json |
| Content-Length | 316 |
| Content-Length | 336 |

Examples:
| product_team_id | product_id |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Feature: Search Device Reference Data - success scenarios
| results.0.product_id | ${ note(product_id) } |
| results.0.product_team_id | ${ note(product_team_id) } |
| results.0.name | My Device Reference Data |
| results.0.status | active |
| results.0.ods_code | F5H1R |
| results.0.created_on | << ignore >> |
| results.0.updated_on | << ignore >> |
Expand All @@ -57,7 +58,7 @@ Feature: Search Device Reference Data - success scenarios
And the response headers contain:
| name | value |
| Content-Type | application/json |
| Content-Length | 331 |
| Content-Length | 351 |

Scenario: Successfully search more than one Device Reference Data
Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
Expand Down Expand Up @@ -88,6 +89,7 @@ Feature: Search Device Reference Data - success scenarios
| path | value |
| results.0.id | ${ note(device_reference_data_id_1) } |
| results.0.name | My Device Reference Data 1 |
| results.0.status | active |
| results.0.product_id | ${ note(product_id) } |
| results.0.product_team_id | ${ note(product_team_id) } |
| results.0.ods_code | F5H1R |
Expand All @@ -97,6 +99,7 @@ Feature: Search Device Reference Data - success scenarios
| results.0.questionnaire_responses | {} |
| results.1.id | ${ note(device_reference_data_id_2) } |
| results.1.name | My Device Reference Data 2 |
| results.1.status | active |
| results.1.product_id | ${ note(product_id) } |
| results.1.product_team_id | ${ note(product_team_id) } |
| results.1.ods_code | F5H1R |
Expand All @@ -106,6 +109,7 @@ Feature: Search Device Reference Data - success scenarios
| results.1.questionnaire_responses | {} |
| results.2.id | ${ note(device_reference_data_id_3) } |
| results.2.name | My Device Reference Data 3 |
| results.2.status | active |
| results.2.product_id | ${ note(product_id) } |
| results.2.product_team_id | ${ note(product_team_id) } |
| results.2.ods_code | F5H1R |
Expand All @@ -116,4 +120,4 @@ Feature: Search Device Reference Data - success scenarios
And the response headers contain:
| name | value |
| Content-Type | application/json |
| Content-Length | 973 |
| Content-Length | 1033 |

0 comments on commit bb31794

Please sign in to comment.