You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/incidents.feature
+105Lines changed: 105 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -210,6 +210,22 @@ Feature: Incidents
210
210
When the request is sent
211
211
Then the response status is 404 Not Found
212
212
213
+
@generated@skip@team:DataDog/incident-app
214
+
Scenario: Create an incident user-defined role returns "Bad Request" response
215
+
Given operation "CreateIncidentUserDefinedRole" enabled
216
+
And new "CreateIncidentUserDefinedRole" request
217
+
And body with value {"data": {"attributes": {"description": "The technical lead for the incident.", "name": "Tech Lead", "policy": {"is_single": true}}, "relationships": {"incident_type": {"data": {"id": "00000000-0000-0000-0000-000000000001", "type": "incident_types"}}}, "type": "incident_user_defined_roles"}}
218
+
When the request is sent
219
+
Then the response status is 400 Bad Request
220
+
221
+
@generated@skip@team:DataDog/incident-app
222
+
Scenario: Create an incident user-defined role returns "Created" response
223
+
Given operation "CreateIncidentUserDefinedRole" enabled
224
+
And new "CreateIncidentUserDefinedRole" request
225
+
And body with value {"data": {"attributes": {"description": "The technical lead for the incident.", "name": "Tech Lead", "policy": {"is_single": true}}, "relationships": {"incident_type": {"data": {"id": "00000000-0000-0000-0000-000000000001", "type": "incident_types"}}}, "type": "incident_user_defined_roles"}}
226
+
When the request is sent
227
+
Then the response status is 201 Created
228
+
213
229
@generated@skip@team:DataDog/incident-app
214
230
Scenario: Create global incident handle returns "Bad Request" response
215
231
Given operation "CreateGlobalIncidentHandle" enabled
@@ -530,6 +546,30 @@ Feature: Incidents
530
546
When the request is sent
531
547
Then the response status is 404 Not Found
532
548
549
+
@generated@skip@team:DataDog/incident-app
550
+
Scenario: Delete an incident user-defined role returns "Bad Request" response
551
+
Given operation "DeleteIncidentUserDefinedRole" enabled
552
+
And new "DeleteIncidentUserDefinedRole" request
553
+
And request contains "role_id" parameter from "REPLACE.ME"
554
+
When the request is sent
555
+
Then the response status is 400 Bad Request
556
+
557
+
@generated@skip@team:DataDog/incident-app
558
+
Scenario: Delete an incident user-defined role returns "No Content" response
559
+
Given operation "DeleteIncidentUserDefinedRole" enabled
560
+
And new "DeleteIncidentUserDefinedRole" request
561
+
And request contains "role_id" parameter from "REPLACE.ME"
562
+
When the request is sent
563
+
Then the response status is 204 No Content
564
+
565
+
@generated@skip@team:DataDog/incident-app
566
+
Scenario: Delete an incident user-defined role returns "Not Found" response
567
+
Given operation "DeleteIncidentUserDefinedRole" enabled
568
+
And new "DeleteIncidentUserDefinedRole" request
569
+
And request contains "role_id" parameter from "REPLACE.ME"
570
+
When the request is sent
571
+
Then the response status is 404 Not Found
572
+
533
573
@generated@skip@team:DataDog/incident-app
534
574
Scenario: Delete global incident handle returns "Bad Request" response
535
575
Given operation "DeleteGlobalIncidentHandle" enabled
@@ -781,6 +821,30 @@ Feature: Incidents
781
821
When the request is sent
782
822
Then the response status is 200 OK
783
823
824
+
@generated@skip@team:DataDog/incident-app
825
+
Scenario: Get an incident user-defined role returns "Bad Request" response
826
+
Given operation "GetIncidentUserDefinedRole" enabled
827
+
And new "GetIncidentUserDefinedRole" request
828
+
And request contains "role_id" parameter from "REPLACE.ME"
829
+
When the request is sent
830
+
Then the response status is 400 Bad Request
831
+
832
+
@generated@skip@team:DataDog/incident-app
833
+
Scenario: Get an incident user-defined role returns "Not Found" response
834
+
Given operation "GetIncidentUserDefinedRole" enabled
835
+
And new "GetIncidentUserDefinedRole" request
836
+
And request contains "role_id" parameter from "REPLACE.ME"
837
+
When the request is sent
838
+
Then the response status is 404 Not Found
839
+
840
+
@generated@skip@team:DataDog/incident-app
841
+
Scenario: Get an incident user-defined role returns "OK" response
842
+
Given operation "GetIncidentUserDefinedRole" enabled
843
+
And new "GetIncidentUserDefinedRole" request
844
+
And request contains "role_id" parameter from "REPLACE.ME"
845
+
When the request is sent
846
+
Then the response status is 200 OK
847
+
784
848
@generated@skip@team:DataDog/incident-app
785
849
Scenario: Get global incident settings returns "Bad Request" response
786
850
Given operation "GetGlobalIncidentSettings" enabled
@@ -1108,6 +1172,20 @@ Feature: Incidents
1108
1172
Then the response status is 200 OK
1109
1173
And the response "data" has length 0
1110
1174
1175
+
@generated@skip@team:DataDog/incident-app
1176
+
Scenario: List incident user-defined roles returns "Bad Request" response
1177
+
Given operation "ListIncidentUserDefinedRoles" enabled
1178
+
And new "ListIncidentUserDefinedRoles" request
1179
+
When the request is sent
1180
+
Then the response status is 400 Bad Request
1181
+
1182
+
@generated@skip@team:DataDog/incident-app
1183
+
Scenario: List incident user-defined roles returns "OK" response
1184
+
Given operation "ListIncidentUserDefinedRoles" enabled
1185
+
And new "ListIncidentUserDefinedRoles" request
1186
+
When the request is sent
1187
+
Then the response status is 200 OK
1188
+
1111
1189
@generated@skip@team:DataDog/incident-app
1112
1190
Scenario: List postmortem templates returns "Bad Request" response
1113
1191
Given operation "ListIncidentPostmortemTemplates" enabled
@@ -1348,6 +1426,33 @@ Feature: Incidents
1348
1426
When the request is sent
1349
1427
Then the response status is 200 OK
1350
1428
1429
+
@generated@skip@team:DataDog/incident-app
1430
+
Scenario: Update an incident user-defined role returns "Bad Request" response
1431
+
Given operation "UpdateIncidentUserDefinedRole" enabled
1432
+
And new "UpdateIncidentUserDefinedRole" request
1433
+
And request contains "role_id" parameter from "REPLACE.ME"
1434
+
And body with value {"data": {"attributes": {"description": "The technical lead for the incident.", "name": "Tech Lead", "policy": {"is_single": true}}, "id": "00000000-0000-0000-0000-000000000002", "type": "incident_user_defined_roles"}}
1435
+
When the request is sent
1436
+
Then the response status is 400 Bad Request
1437
+
1438
+
@generated@skip@team:DataDog/incident-app
1439
+
Scenario: Update an incident user-defined role returns "Not Found" response
1440
+
Given operation "UpdateIncidentUserDefinedRole" enabled
1441
+
And new "UpdateIncidentUserDefinedRole" request
1442
+
And request contains "role_id" parameter from "REPLACE.ME"
1443
+
And body with value {"data": {"attributes": {"description": "The technical lead for the incident.", "name": "Tech Lead", "policy": {"is_single": true}}, "id": "00000000-0000-0000-0000-000000000002", "type": "incident_user_defined_roles"}}
1444
+
When the request is sent
1445
+
Then the response status is 404 Not Found
1446
+
1447
+
@generated@skip@team:DataDog/incident-app
1448
+
Scenario: Update an incident user-defined role returns "OK" response
1449
+
Given operation "UpdateIncidentUserDefinedRole" enabled
1450
+
And new "UpdateIncidentUserDefinedRole" request
1451
+
And request contains "role_id" parameter from "REPLACE.ME"
1452
+
And body with value {"data": {"attributes": {"description": "The technical lead for the incident.", "name": "Tech Lead", "policy": {"is_single": true}}, "id": "00000000-0000-0000-0000-000000000002", "type": "incident_user_defined_roles"}}
1453
+
When the request is sent
1454
+
Then the response status is 200 OK
1455
+
1351
1456
@generated@skip@team:DataDog/incident-app
1352
1457
Scenario: Update global incident handle returns "Bad Request" response
1353
1458
Given operation "UpdateGlobalIncidentHandle" enabled
0 commit comments