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
+91Lines changed: 91 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,33 @@ Feature: Incidents
21
21
When the request is sent
22
22
Then the response status is 200 OK
23
23
24
+
@generated@skip@team:Datadog/incident-app
25
+
Scenario: Create a timestamp override for an incident returns "Bad Request" response
26
+
Given operation "CreateIncidentTimestampOverride" enabled
27
+
And new "CreateIncidentTimestampOverride" request
28
+
And request contains "incident_id" parameter from "REPLACE.ME"
29
+
And body with value {"data": {"attributes": {"timestamp_type": "created", "timestamp_value": "2024-12-29T10:00:00Z"}, "type": "incidents_timestamp_overrides"}}
30
+
When the request is sent
31
+
Then the response status is 400 Bad Request
32
+
33
+
@generated@skip@team:Datadog/incident-app
34
+
Scenario: Create a timestamp override for an incident returns "Created" response
35
+
Given operation "CreateIncidentTimestampOverride" enabled
36
+
And new "CreateIncidentTimestampOverride" request
37
+
And request contains "incident_id" parameter from "REPLACE.ME"
38
+
And body with value {"data": {"attributes": {"timestamp_type": "created", "timestamp_value": "2024-12-29T10:00:00Z"}, "type": "incidents_timestamp_overrides"}}
39
+
When the request is sent
40
+
Then the response status is 201 Created
41
+
42
+
@generated@skip@team:Datadog/incident-app
43
+
Scenario: Create a timestamp override for an incident returns "Not Found" response
44
+
Given operation "CreateIncidentTimestampOverride" enabled
45
+
And new "CreateIncidentTimestampOverride" request
46
+
And request contains "incident_id" parameter from "REPLACE.ME"
47
+
And body with value {"data": {"attributes": {"timestamp_type": "created", "timestamp_value": "2024-12-29T10:00:00Z"}, "type": "incidents_timestamp_overrides"}}
48
+
When the request is sent
49
+
Then the response status is 404 Not Found
50
+
24
51
@skip@team:DataDog/incident-app
25
52
Scenario: Create an incident impact returns "Bad Request" response
26
53
Given operation "CreateIncidentImpact" enabled
@@ -330,6 +357,24 @@ Feature: Incidents
330
357
When the request is sent
331
358
Then the response status is 404 Not Found
332
359
360
+
@generated@skip@team:Datadog/incident-app
361
+
Scenario: Delete a timestamp override for an incident returns "No Content" response
362
+
Given operation "DeleteIncidentTimestampOverride" enabled
363
+
And new "DeleteIncidentTimestampOverride" request
364
+
And request contains "incident_id" parameter from "REPLACE.ME"
365
+
And request contains "timestamp_override_id" parameter from "REPLACE.ME"
366
+
When the request is sent
367
+
Then the response status is 204 No Content
368
+
369
+
@generated@skip@team:Datadog/incident-app
370
+
Scenario: Delete a timestamp override for an incident returns "Not Found" response
371
+
Given operation "DeleteIncidentTimestampOverride" enabled
372
+
And new "DeleteIncidentTimestampOverride" request
373
+
And request contains "incident_id" parameter from "REPLACE.ME"
374
+
And request contains "timestamp_override_id" parameter from "REPLACE.ME"
375
+
When the request is sent
376
+
Then the response status is 404 Not Found
377
+
333
378
@generated@skip@team:DataDog/incident-app
334
379
Scenario: Delete an existing incident returns "Bad Request" response
335
380
Given operation "DeleteIncident" enabled
@@ -1018,6 +1063,22 @@ Feature: Incidents
1018
1063
When the request is sent
1019
1064
Then the response status is 200 OK
1020
1065
1066
+
@generated@skip@team:Datadog/incident-app
1067
+
Scenario: List timestamp overrides for an incident returns "Not Found" response
1068
+
Given operation "ListIncidentTimestampOverrides" enabled
1069
+
And new "ListIncidentTimestampOverrides" request
1070
+
And request contains "incident_id" parameter from "REPLACE.ME"
1071
+
When the request is sent
1072
+
Then the response status is 404 Not Found
1073
+
1074
+
@generated@skip@team:Datadog/incident-app
1075
+
Scenario: List timestamp overrides for an incident returns "OK" response
1076
+
Given operation "ListIncidentTimestampOverrides" enabled
1077
+
And new "ListIncidentTimestampOverrides" request
1078
+
And request contains "incident_id" parameter from "REPLACE.ME"
1079
+
When the request is sent
1080
+
Then the response status is 200 OK
1081
+
1021
1082
@team:DataDog/incident-app
1022
1083
Scenario: Remove commander from an incident returns "OK" response
1023
1084
Given operation "UpdateIncident" enabled
@@ -1066,6 +1127,36 @@ Feature: Incidents
1066
1127
Then the response status is 200 OK
1067
1128
And the response has 3 items
1068
1129
1130
+
@generated@skip@team:Datadog/incident-app
1131
+
Scenario: Update a timestamp override for an incident returns "Bad Request" response
1132
+
Given operation "UpdateIncidentTimestampOverride" enabled
1133
+
And new "UpdateIncidentTimestampOverride" request
1134
+
And request contains "incident_id" parameter from "REPLACE.ME"
1135
+
And request contains "timestamp_override_id" parameter from "REPLACE.ME"
1136
+
And body with value {"data": {"attributes": {"timestamp_value": "2024-12-29T11:00:00Z"}, "type": "incidents_timestamp_overrides"}}
1137
+
When the request is sent
1138
+
Then the response status is 400 Bad Request
1139
+
1140
+
@generated@skip@team:Datadog/incident-app
1141
+
Scenario: Update a timestamp override for an incident returns "Not Found" response
1142
+
Given operation "UpdateIncidentTimestampOverride" enabled
1143
+
And new "UpdateIncidentTimestampOverride" request
1144
+
And request contains "incident_id" parameter from "REPLACE.ME"
1145
+
And request contains "timestamp_override_id" parameter from "REPLACE.ME"
1146
+
And body with value {"data": {"attributes": {"timestamp_value": "2024-12-29T11:00:00Z"}, "type": "incidents_timestamp_overrides"}}
1147
+
When the request is sent
1148
+
Then the response status is 404 Not Found
1149
+
1150
+
@generated@skip@team:Datadog/incident-app
1151
+
Scenario: Update a timestamp override for an incident returns "OK" response
1152
+
Given operation "UpdateIncidentTimestampOverride" enabled
1153
+
And new "UpdateIncidentTimestampOverride" request
1154
+
And request contains "incident_id" parameter from "REPLACE.ME"
1155
+
And request contains "timestamp_override_id" parameter from "REPLACE.ME"
1156
+
And body with value {"data": {"attributes": {"timestamp_value": "2024-12-29T11:00:00Z"}, "type": "incidents_timestamp_overrides"}}
0 commit comments