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
+27Lines changed: 27 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 page from an incident returns "Bad Request" response
26
+
Given operation "CreatePageFromIncident" enabled
27
+
And new "CreatePageFromIncident" request
28
+
And request contains "incident_id" parameter from "REPLACE.ME"
29
+
And body with value {"data": {"attributes": {"description": "Page created for incident response", "services": ["web-service", "api-service"], "tags": ["urgent", "production"], "target": {"identifier": "team-handle", "type": "team_handle"}, "title": "Incident Response Page"}, "type": "page"}}
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 page from an incident returns "Not Found" response
35
+
Given operation "CreatePageFromIncident" enabled
36
+
And new "CreatePageFromIncident" request
37
+
And request contains "incident_id" parameter from "REPLACE.ME"
38
+
And body with value {"data": {"attributes": {"description": "Page created for incident response", "services": ["web-service", "api-service"], "tags": ["urgent", "production"], "target": {"identifier": "team-handle", "type": "team_handle"}, "title": "Incident Response Page"}, "type": "page"}}
39
+
When the request is sent
40
+
Then the response status is 404 Not Found
41
+
42
+
@generated@skip@team:DataDog/incident-app
43
+
Scenario: Create a page from an incident returns "OK" response
44
+
Given operation "CreatePageFromIncident" enabled
45
+
And new "CreatePageFromIncident" request
46
+
And request contains "incident_id" parameter from "REPLACE.ME"
47
+
And body with value {"data": {"attributes": {"description": "Page created for incident response", "services": ["web-service", "api-service"], "tags": ["urgent", "production"], "target": {"identifier": "team-handle", "type": "team_handle"}, "title": "Incident Response Page"}, "type": "page"}}
48
+
When the request is sent
49
+
Then the response status is 200 OK
50
+
24
51
@team:DataDog/incident-app
25
52
Scenario: Create an incident attachment returns "OK" response
26
53
Given operation "UpdateIncidentAttachments" enabled
0 commit comments