@@ -11,7 +11,7 @@ Feature: Incidents
11
11
Scenario : Create an incident returns "Bad Request" response
12
12
Given operation "CreateIncident" enabled
13
13
And new "CreateIncident" request
14
- And body with value {
"data" : {
"attributes" : {
"customer_impacted" : false,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"initial_timeline_cells " : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"notification_handles" : [
" @[email protected] "],
"title" :
"A test incident title" },
"relationships" : {
"commander" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }}},
"type" :
"incidents" }}
14
+ And body with value {
"data" : {
"attributes" : {
"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" : " @[email protected] "} ],
"title" :
"A test incident title" },
"relationships" : {
"commander" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }}},
"type" :
"incidents" }}
15
15
When the request is sent
16
16
Then the response status is 400 Bad Request
17
17
@@ -27,7 +27,7 @@ Feature: Incidents
27
27
Scenario : Create an incident returns "Not Found" response
28
28
Given operation "CreateIncident" enabled
29
29
And new "CreateIncident" request
30
- And body with value {
"data" : {
"attributes" : {
"customer_impacted" : false,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"initial_timeline_cells " : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"notification_handles" : [
" @[email protected] "],
"title" :
"A test incident title" },
"relationships" : {
"commander" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }}},
"type" :
"incidents" }}
30
+ And body with value {
"data" : {
"attributes" : {
"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" : " @[email protected] "} ],
"title" :
"A test incident title" },
"relationships" : {
"commander" : {
"data" : {
"id" :
"00000000-0000-0000-0000-000000000000" ,
"type" :
"users" }}},
"type" :
"incidents" }}
31
31
When the request is sent
32
32
Then the response status is 404 Not Found
33
33
@@ -106,7 +106,7 @@ Feature: Incidents
106
106
Given operation "UpdateIncident" enabled
107
107
And new "UpdateIncident" request
108
108
And request contains "incident_id" parameter from "<PATH>"
109
- 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": ["@
[email protected] "], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
109
+ 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-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
110
110
When the request is sent
111
111
Then the response status is 400 Bad Request
112
112
@@ -115,7 +115,7 @@ Feature: Incidents
115
115
Given operation "UpdateIncident" enabled
116
116
And new "UpdateIncident" request
117
117
And request contains "incident_id" parameter from "<PATH>"
118
- 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": ["@
[email protected] "], "resolved": null, "title": "A test incident title"}, "id": "00000000-0000-0000-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
118
+ 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-0000-000000000000", "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "created_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "integrations": {"data": [{"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}, {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_integrations"}]}, "last_modified_by_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}, "postmortem": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "incident_postmortems"}}}, "type": "incidents"}}
119
119
When the request is sent
120
120
Then the response status is 404 Not Found
121
121
0 commit comments