@@ -186,6 +186,30 @@ Feature: Incidents
186186 When the request is sent
187187 Then the response status is 404 Not Found
188188
189+ @generated @skip @team:DataDog/incident-app
190+ Scenario : Create an incident user-defined field returns "Bad Request" response
191+ Given operation "CreateIncidentUserDefinedField" enabled
192+ And new "CreateIncidentUserDefinedField" request
193+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "name" : "root_cause" , "ordinal" : "1.5" , "required" : false, "tag_key" : "datacenter" , "type" : 3, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "relationships" : {"incident_type" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "incident_types" }}}, "type" : "user_defined_field" }}
194+ When the request is sent
195+ Then the response status is 400 Bad Request
196+
197+ @generated @skip @team:DataDog/incident-app
198+ Scenario : Create an incident user-defined field returns "CREATED" response
199+ Given operation "CreateIncidentUserDefinedField" enabled
200+ And new "CreateIncidentUserDefinedField" request
201+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "name" : "root_cause" , "ordinal" : "1.5" , "required" : false, "tag_key" : "datacenter" , "type" : 3, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "relationships" : {"incident_type" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "incident_types" }}}, "type" : "user_defined_field" }}
202+ When the request is sent
203+ Then the response status is 201 CREATED
204+
205+ @generated @skip @team:DataDog/incident-app
206+ Scenario : Create an incident user-defined field returns "Not Found" response
207+ Given operation "CreateIncidentUserDefinedField" enabled
208+ And new "CreateIncidentUserDefinedField" request
209+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "name" : "root_cause" , "ordinal" : "1.5" , "required" : false, "tag_key" : "datacenter" , "type" : 3, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "relationships" : {"incident_type" : {"data" : {"id" : "00000000-0000-0000-0000-000000000000" , "type" : "incident_types" }}}, "type" : "user_defined_field" }}
210+ When the request is sent
211+ Then the response status is 404 Not Found
212+
189213 @generated @skip @team:DataDog/incident-app
190214 Scenario : Create global incident handle returns "Bad Request" response
191215 Given operation "CreateGlobalIncidentHandle" enabled
@@ -482,6 +506,30 @@ Feature: Incidents
482506 When the request is sent
483507 Then the response status is 204 OK
484508
509+ @generated @skip @team:DataDog/incident-app
510+ Scenario : Delete an incident user-defined field returns "Bad Request" response
511+ Given operation "DeleteIncidentUserDefinedField" enabled
512+ And new "DeleteIncidentUserDefinedField" request
513+ And request contains "field_id" parameter from "REPLACE.ME"
514+ When the request is sent
515+ Then the response status is 400 Bad Request
516+
517+ @generated @skip @team:DataDog/incident-app
518+ Scenario : Delete an incident user-defined field returns "No Content" response
519+ Given operation "DeleteIncidentUserDefinedField" enabled
520+ And new "DeleteIncidentUserDefinedField" request
521+ And request contains "field_id" parameter from "REPLACE.ME"
522+ When the request is sent
523+ Then the response status is 204 No Content
524+
525+ @generated @skip @team:DataDog/incident-app
526+ Scenario : Delete an incident user-defined field returns "Not Found" response
527+ Given operation "DeleteIncidentUserDefinedField" enabled
528+ And new "DeleteIncidentUserDefinedField" request
529+ And request contains "field_id" parameter from "REPLACE.ME"
530+ When the request is sent
531+ Then the response status is 404 Not Found
532+
485533 @generated @skip @team:DataDog/incident-app
486534 Scenario : Delete global incident handle returns "Bad Request" response
487535 Given operation "DeleteGlobalIncidentHandle" enabled
@@ -647,6 +695,20 @@ Feature: Incidents
647695 When the request is sent
648696 Then the response status is 200 OK
649697
698+ @generated @skip @team:DataDog/incident-app
699+ Scenario : Get a list of incident user-defined fields returns "Bad Request" response
700+ Given operation "ListIncidentUserDefinedFields" enabled
701+ And new "ListIncidentUserDefinedFields" request
702+ When the request is sent
703+ Then the response status is 400 Bad Request
704+
705+ @generated @skip @team:DataDog/incident-app
706+ Scenario : Get a list of incident user-defined fields returns "OK" response
707+ Given operation "ListIncidentUserDefinedFields" enabled
708+ And new "ListIncidentUserDefinedFields" request
709+ When the request is sent
710+ Then the response status is 200 OK
711+
650712 @generated @skip @team:DataDog/incident-app
651713 Scenario : Get a list of incidents returns "Bad Request" response
652714 Given operation "ListIncidents" enabled
@@ -703,6 +765,22 @@ Feature: Incidents
703765 When the request is sent
704766 Then the response status is 200 OK
705767
768+ @generated @skip @team:DataDog/incident-app
769+ Scenario : Get an incident user-defined field returns "Not Found" response
770+ Given operation "GetIncidentUserDefinedField" enabled
771+ And new "GetIncidentUserDefinedField" request
772+ And request contains "field_id" parameter from "REPLACE.ME"
773+ When the request is sent
774+ Then the response status is 404 Not Found
775+
776+ @generated @skip @team:DataDog/incident-app
777+ Scenario : Get an incident user-defined field returns "OK" response
778+ Given operation "GetIncidentUserDefinedField" enabled
779+ And new "GetIncidentUserDefinedField" request
780+ And request contains "field_id" parameter from "REPLACE.ME"
781+ When the request is sent
782+ Then the response status is 200 OK
783+
706784 @generated @skip @team:DataDog/incident-app
707785 Scenario : Get global incident settings returns "Bad Request" response
708786 Given operation "GetGlobalIncidentSettings" enabled
@@ -927,6 +1005,30 @@ Feature: Incidents
9271005 When the request is sent
9281006 Then the response status is 404 Not Found
9291007
1008+ @generated @skip @team:DataDog/incident-app
1009+ Scenario : Import values for an incident user-defined field returns "Bad Request" response
1010+ Given operation "ImportIncidentUserDefinedFieldValues" enabled
1011+ And new "ImportIncidentUserDefinedFieldValues" request
1012+ And request contains "field_id" parameter from "REPLACE.ME"
1013+ When the request is sent
1014+ Then the response status is 400 Bad Request
1015+
1016+ @generated @skip @team:DataDog/incident-app
1017+ Scenario : Import values for an incident user-defined field returns "CREATED" response
1018+ Given operation "ImportIncidentUserDefinedFieldValues" enabled
1019+ And new "ImportIncidentUserDefinedFieldValues" request
1020+ And request contains "field_id" parameter from "REPLACE.ME"
1021+ When the request is sent
1022+ Then the response status is 201 CREATED
1023+
1024+ @generated @skip @team:DataDog/incident-app
1025+ Scenario : Import values for an incident user-defined field returns "Not Found" response
1026+ Given operation "ImportIncidentUserDefinedFieldValues" enabled
1027+ And new "ImportIncidentUserDefinedFieldValues" request
1028+ And request contains "field_id" parameter from "REPLACE.ME"
1029+ When the request is sent
1030+ Then the response status is 404 Not Found
1031+
9301032 @generated @skip @team:DataDog/incident-app
9311033 Scenario : List an incident's impacts returns "Bad Request" response
9321034 Given new "ListIncidentImpacts" request
@@ -1243,6 +1345,33 @@ Feature: Incidents
12431345 When the request is sent
12441346 Then the response status is 200 OK
12451347
1348+ @generated @skip @team:DataDog/incident-app
1349+ Scenario : Update an incident user-defined field returns "Bad Request" response
1350+ Given operation "UpdateIncidentUserDefinedField" enabled
1351+ And new "UpdateIncidentUserDefinedField" request
1352+ And request contains "field_id" parameter from "REPLACE.ME"
1353+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "ordinal" : "1.5" , "required" : false, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "id" : "00000000-0000-0000-0000-000000000000" , "type" : "user_defined_field" }}
1354+ When the request is sent
1355+ Then the response status is 400 Bad Request
1356+
1357+ @generated @skip @team:DataDog/incident-app
1358+ Scenario : Update an incident user-defined field returns "Not Found" response
1359+ Given operation "UpdateIncidentUserDefinedField" enabled
1360+ And new "UpdateIncidentUserDefinedField" request
1361+ And request contains "field_id" parameter from "REPLACE.ME"
1362+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "ordinal" : "1.5" , "required" : false, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "id" : "00000000-0000-0000-0000-000000000000" , "type" : "user_defined_field" }}
1363+ When the request is sent
1364+ Then the response status is 404 Not Found
1365+
1366+ @generated @skip @team:DataDog/incident-app
1367+ Scenario : Update an incident user-defined field returns "OK" response
1368+ Given operation "UpdateIncidentUserDefinedField" enabled
1369+ And new "UpdateIncidentUserDefinedField" request
1370+ And request contains "field_id" parameter from "REPLACE.ME"
1371+ And body with value {"data" : {"attributes" : {"category" : "what_happened" , "collected" : "active" , "default_value" : "critical" , "display_name" : "Root Cause" , "ordinal" : "1.5" , "required" : false, "valid_values" : [{"description" : "A critical severity incident." , "display_name" : "Critical" , "short_description" : "Critical" , "value" : "critical" }]}, "id" : "00000000-0000-0000-0000-000000000000" , "type" : "user_defined_field" }}
1372+ When the request is sent
1373+ Then the response status is 200 OK
1374+
12461375 @generated @skip @team:DataDog/incident-app
12471376 Scenario : Update global incident handle returns "Bad Request" response
12481377 Given operation "UpdateGlobalIncidentHandle" enabled
0 commit comments