You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Successfully create a AS Device with MHSMessageSet and ASAdditionalInteractions containing no questionnaire responses
116
+
Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
117
+
| path | value |
118
+
| name | MyGreatProductTeam |
119
+
| ods_code | F5H1R |
120
+
And I note the response field "$.id" as "product_team_id"
121
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/Epr" with body:
122
+
| path | value |
123
+
| name | MyGreatProduct |
124
+
And I note the response field "$.id" as "product_id"
125
+
And I note the response field "$.keys.0.key_type" as "party_key_tag"
126
+
And I note the response field "$.keys.0.key_value" as "party_key_tag_value"
127
+
When I make a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/DeviceReferenceData/MhsMessageSet"
128
+
And I note the response field "$.id" as "mhs_message_set_drd_id"
129
+
When I make a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/DeviceReferenceData/AccreditedSystemsAdditionalInteractions"
130
+
And I note the response field "$.id" as "as_message_set_drd_id"
131
+
When I make a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/AccreditedSystem" with body:
And I note the response field "$.id" as "device_id"
173
+
When I make a "GET" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/${ note(device_id) }"
174
+
Then I receive a status code "200" with body
175
+
| path | value |
176
+
| id | ${ note(device_id) } |
177
+
| name | F5H1R-850000/ - AccreditedSystem |
178
+
| status | active |
179
+
| product_id | ${ note(product_id) } |
180
+
| product_team_id | ${ note(product_team_id) } |
181
+
| ods_code | F5H1R |
182
+
| created_on | << ignore >> |
183
+
| updated_on | << ignore >> |
184
+
| deleted_on | << ignore >> |
185
+
| keys | [] |
186
+
| tags.0.0.0 | ${ note(party_key_tag) } |
187
+
| tags.0.0.1 | ${ note(party_key_tag_value) } |
188
+
| questionnaire_responses | << ignore >> |
189
+
| device_reference_data | << ignore >> |
190
+
And the response headers contain:
191
+
| name | value |
192
+
| Content-Type | application/json |
193
+
| Content-Length | 1030 |
194
+
195
+
Scenario: Successfully create multiple AS Devices
196
+
Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
197
+
| path | value |
198
+
| name | MyGreatProductTeam |
199
+
| ods_code | F5H1R |
200
+
| keys.0.key_type | product_team_id_alias |
201
+
| keys.0.key_value | FOOBAR |
202
+
And I note the response field "$.id" as "product_team_id"
203
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/Epr" with body:
204
+
| path | value |
205
+
| name | MyGreatProduct |
206
+
And I note the response field "$.id" as "product_id"
207
+
And I note the response field "$.keys.0.key_type" as "party_key_tag"
208
+
And I note the response field "$.keys.0.key_value" as "party_key_tag_value"
209
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/DeviceReferenceData/MhsMessageSet" with body:
And I note the response field "$.id" as "mhs_message_set_drd_id"
215
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/MessageHandlingSystem" with body:
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/DeviceReferenceData/AccreditedSystemsAdditionalInteractions" with body:
And I note the response field "$.id" as "as_message_set_drd_id"
238
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/AccreditedSystem" with body:
And I note the response field "$.id" as "device_id"
250
+
And I have already made a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/AccreditedSystem" with body:
And I note the response field "$.id" as "device_id_2"
262
+
When I make a "GET" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/${ note(device_id) }"
263
+
Then I receive a status code "200" with body
264
+
| path | value |
265
+
| id | ${ note(device_id) } |
266
+
| name | F5H1R-850000/ - AccreditedSystem |
267
+
| status | active |
268
+
| product_id | ${ note(product_id) } |
269
+
| product_team_id | ${ note(product_team_id) } |
270
+
| ods_code | F5H1R |
271
+
| created_on | << ignore >> |
272
+
| updated_on | << ignore >> |
273
+
| deleted_on | << ignore >> |
274
+
| keys | [] |
275
+
| tags.0.0.0 | ${ note(party_key_tag) } |
276
+
| tags.0.0.1 | ${ note(party_key_tag_value) } |
277
+
| questionnaire_responses | << ignore >> |
278
+
| device_reference_data | << ignore >> |
279
+
And the response headers contain:
280
+
| name | value |
281
+
| Content-Type | application/json |
282
+
| Content-Length | 1724 |
283
+
When I make a "GET" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product/${ note(product_id) }/Device/${ note(device_id_2) }"
0 commit comments