@@ -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
@@ -1243,6 +1321,33 @@ Feature: Incidents
12431321 When the request is sent
12441322 Then the response status is 200 OK
12451323
1324+ @generated @skip @team:DataDog/incident-app
1325+ Scenario : Update an incident user-defined field returns "Bad Request" response
1326+ Given operation "UpdateIncidentUserDefinedField" enabled
1327+ And new "UpdateIncidentUserDefinedField" request
1328+ And request contains "field_id" parameter from "REPLACE.ME"
1329+ 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" }}
1330+ When the request is sent
1331+ Then the response status is 400 Bad Request
1332+
1333+ @generated @skip @team:DataDog/incident-app
1334+ Scenario : Update an incident user-defined field returns "Not Found" response
1335+ Given operation "UpdateIncidentUserDefinedField" enabled
1336+ And new "UpdateIncidentUserDefinedField" request
1337+ And request contains "field_id" parameter from "REPLACE.ME"
1338+ 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" }}
1339+ When the request is sent
1340+ Then the response status is 404 Not Found
1341+
1342+ @generated @skip @team:DataDog/incident-app
1343+ Scenario : Update an incident user-defined field returns "OK" response
1344+ Given operation "UpdateIncidentUserDefinedField" enabled
1345+ And new "UpdateIncidentUserDefinedField" request
1346+ And request contains "field_id" parameter from "REPLACE.ME"
1347+ 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" }}
1348+ When the request is sent
1349+ Then the response status is 200 OK
1350+
12461351 @generated @skip @team:DataDog/incident-app
12471352 Scenario : Update global incident handle returns "Bad Request" response
12481353 Given operation "UpdateGlobalIncidentHandle" enabled
0 commit comments