@@ -215,7 +215,7 @@ Feature: Incidents
215
215
Given operation "UpdateIncident" enabled
216
216
And new "UpdateIncident" request
217
217
And request contains "incident_id" parameter from "REPLACE.ME"
218
- And body with value {
"data" : {
"attributes" : {
"customer_impact_end" : null,
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impact_start" : null,
"customer_impacted" : false,
"detected" : null,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }],
"resolved" : null, " title":
"A test incident title" },
"id" :
"00000000-0000-0000-4567-000000000000" ,
"relationships" : {
"commander_user" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }},
"integrations" : {
"data" : [{
"id" :
"00000000-abcd-0005-0000-000000000000" ,
"type" :
"incident_integrations" }, {
"id" :
"00000000-abcd-0006-0000-000000000000" ,
"type" :
"incident_integrations" }]},
"postmortem" : {
"data" : {
"id" :
"00000000-0000-abcd-3000-000000000000" ,
"type" :
"incident_postmortems" }}},
"type" :
"incidents" }}
218
+ And body with value {
"data" : {
"attributes" : {
"customer_impact_end" : null,
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impact_start" : null,
"customer_impacted" : false,
"detected" : null,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }],
"title" :
"A test incident title" },
"id" :
"00000000-0000-0000-4567-000000000000" ,
"relationships" : {
"commander_user" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }},
"integrations" : {
"data" : [{
"id" :
"00000000-abcd-0005-0000-000000000000" ,
"type" :
"incident_integrations" }, {
"id" :
"00000000-abcd-0006-0000-000000000000" ,
"type" :
"incident_integrations" }]},
"postmortem" : {
"data" : {
"id" :
"00000000-0000-abcd-3000-000000000000" ,
"type" :
"incident_postmortems" }}},
"type" :
"incidents" }}
219
219
When the request is sent
220
220
Then the response status is 400 Bad Request
221
221
@@ -224,7 +224,7 @@ Feature: Incidents
224
224
Given operation "UpdateIncident" enabled
225
225
And new "UpdateIncident" request
226
226
And request contains "incident_id" parameter from "REPLACE.ME"
227
- And body with value {
"data" : {
"attributes" : {
"customer_impact_end" : null,
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impact_start" : null,
"customer_impacted" : false,
"detected" : null,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }],
"resolved" : null, " title":
"A test incident title" },
"id" :
"00000000-0000-0000-4567-000000000000" ,
"relationships" : {
"commander_user" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }},
"integrations" : {
"data" : [{
"id" :
"00000000-abcd-0005-0000-000000000000" ,
"type" :
"incident_integrations" }, {
"id" :
"00000000-abcd-0006-0000-000000000000" ,
"type" :
"incident_integrations" }]},
"postmortem" : {
"data" : {
"id" :
"00000000-0000-abcd-3000-000000000000" ,
"type" :
"incident_postmortems" }}},
"type" :
"incidents" }}
227
+ And body with value {
"data" : {
"attributes" : {
"customer_impact_end" : null,
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impact_start" : null,
"customer_impacted" : false,
"detected" : null,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }],
"title" :
"A test incident title" },
"id" :
"00000000-0000-0000-4567-000000000000" ,
"relationships" : {
"commander_user" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }},
"integrations" : {
"data" : [{
"id" :
"00000000-abcd-0005-0000-000000000000" ,
"type" :
"incident_integrations" }, {
"id" :
"00000000-abcd-0006-0000-000000000000" ,
"type" :
"incident_integrations" }]},
"postmortem" : {
"data" : {
"id" :
"00000000-0000-abcd-3000-000000000000" ,
"type" :
"incident_postmortems" }}},
"type" :
"incidents" }}
228
228
When the request is sent
229
229
Then the response status is 404 Not Found
230
230
0 commit comments