@@ -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" }},
"incident_type_uuid" :
"00000000-0000-0000-0000-000000000000" ,
"initial_cells" : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }, {
"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" }}
73
+ And body with value {
"data" : {
"attributes" : {
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impacted" : false,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"incident_type_uuid" :
"00000000-0000-0000-0000-000000000000" ,
"initial_cells" : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"is_test" : false, " notification_handles": [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }, {
"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" }},
"incident_type_uuid" :
"00000000-0000-0000-0000-000000000000" ,
"initial_cells" : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"notification_handles" : [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }, {
"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" }}
92
+ And body with value {
"data" : {
"attributes" : {
"customer_impact_scope" :
"Example customer impact scope" ,
"customer_impacted" : false,
"fields" : {
"severity" : {
"type" :
"dropdown" ,
"value" :
"SEV-5" }},
"incident_type_uuid" :
"00000000-0000-0000-0000-000000000000" ,
"initial_cells" : [{
"cell_type" :
"markdown" ,
"content" : {
"content" :
"An example timeline cell message." },
"important" : false}],
"is_test" : false, " notification_handles": [{
"display_name" :
"Jane Doe" ,
"handle" :
"@[email protected] " }, {
"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
0 commit comments