@@ -70,7 +70,7 @@ Feature: Incidents
70
70
Scenario : Create an incident returns "Bad Request" response
71
71
Given operation "CreateIncident" enabled
72
72
And new "CreateIncident" request
73
- And body with value {"data" : {"attributes" : {"customer_impact_scope" : "Example customer impact scope" , "customer_impacted" : false, "fields" : {"severity" : {"type" : "dropdown" , "value" : "SEV-5" }}, "initial_cells" : [{"cell_type" : "markdown" , "content" : {"content" : "An example timeline cell message." }, "important" : false}], "notification_handles" : [{"display_name" : "Jane Doe" , "handle" : "@test. user@test .com" }], "title" : "A test incident title" }, "relationships" : {"commander_user" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "users" }}}, "type" : "incidents" }}
73
+ And body with value {"data" : {"attributes" : {"customer_impact_scope" : "Example customer impact scope" , "customer_impacted" : false, "fields" : {"severity" : {"type" : "dropdown" , "value" : "SEV-5" }}, "initial_cells" : [{"cell_type" : "markdown" , "content" : {"content" : "An example timeline cell message." }, "important" : false}], "notification_handles" : [{"display_name" : "Jane Doe" , "handle" : "@user@email .com" }, { "display_name" : "Slack Channel" , "handle" : "@slack-channel" }, { "display_name" : "Incident Workflow" , "handle" : "@workflow-from-incident " }], "title" : "A test incident title" }, "relationships" : {"commander_user" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "users" }}}, "type" : "incidents" }}
74
74
When the request is sent
75
75
Then the response status is 400 Bad Request
76
76
@@ -89,7 +89,7 @@ Feature: Incidents
89
89
Scenario : Create an incident returns "Not Found" response
90
90
Given operation "CreateIncident" enabled
91
91
And new "CreateIncident" request
92
- And body with value {"data" : {"attributes" : {"customer_impact_scope" : "Example customer impact scope" , "customer_impacted" : false, "fields" : {"severity" : {"type" : "dropdown" , "value" : "SEV-5" }}, "initial_cells" : [{"cell_type" : "markdown" , "content" : {"content" : "An example timeline cell message." }, "important" : false}], "notification_handles" : [{"display_name" : "Jane Doe" , "handle" : "@test. user@test .com" }], "title" : "A test incident title" }, "relationships" : {"commander_user" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "users" }}}, "type" : "incidents" }}
92
+ And body with value {"data" : {"attributes" : {"customer_impact_scope" : "Example customer impact scope" , "customer_impacted" : false, "fields" : {"severity" : {"type" : "dropdown" , "value" : "SEV-5" }}, "initial_cells" : [{"cell_type" : "markdown" , "content" : {"content" : "An example timeline cell message." }, "important" : false}], "notification_handles" : [{"display_name" : "Jane Doe" , "handle" : "@user@email .com" }, { "display_name" : "Slack Channel" , "handle" : "@slack-channel" }, { "display_name" : "Incident Workflow" , "handle" : "@workflow-from-incident " }], "title" : "A test incident title" }, "relationships" : {"commander_user" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "users" }}}, "type" : "incidents" }}
93
93
When the request is sent
94
94
Then the response status is 404 Not Found
95
95
@@ -530,7 +530,7 @@ Feature: Incidents
530
530
Given operation "UpdateIncident" enabled
531
531
And new "UpdateIncident" request
532
532
And request contains "incident_id" parameter from "REPLACE.ME"
533
- 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" : "@test. user@test .com" }], "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" }}
533
+ 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" : "@user@email .com" }, { "display_name" : "Slack Channel" , "handle" : "@slack-channel" }, { "display_name" : "Incident Workflow" , "handle" : "@workflow-from-incident " }], "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" }}
534
534
When the request is sent
535
535
Then the response status is 400 Bad Request
536
536
@@ -539,7 +539,7 @@ Feature: Incidents
539
539
Given operation "UpdateIncident" enabled
540
540
And new "UpdateIncident" request
541
541
And request contains "incident_id" parameter from "REPLACE.ME"
542
- 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" : "@test. user@test .com" }], "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" }}
542
+ 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" : "@user@email .com" }, { "display_name" : "Slack Channel" , "handle" : "@slack-channel" }, { "display_name" : "Incident Workflow" , "handle" : "@workflow-from-incident " }], "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" }}
543
543
When the request is sent
544
544
Then the response status is 404 Not Found
545
545
0 commit comments