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
+122Lines changed: 122 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,45 @@ Feature: Incidents
314
314
When the request is sent
315
315
Then the response status is 201 Created
316
316
317
+
@generated@skip@team:DataDog/incident-app
318
+
Scenario: Create postmortem for an incident returns "Bad Request" response
319
+
Given operation "CreateIncidentPostmortem" enabled
320
+
And new "CreateIncidentPostmortem" request
321
+
And request contains "incident_id" parameter from "REPLACE.ME"
322
+
And body with value {"data": {"attributes": {"document_url": "https://app.datadoghq.com/notebook/123", "title": "Postmortem for IR-123"}, "type": "incident_postmortems"}}
323
+
When the request is sent
324
+
Then the response status is 400 Bad Request
325
+
326
+
@team:DataDog/incident-app
327
+
Scenario: Create postmortem for an incident returns "CREATED" response
328
+
Given operation "CreateIncidentPostmortem" enabled
329
+
And there is a valid "incident" in the system
330
+
And new "CreateIncidentPostmortem" request
331
+
And request contains "incident_id" parameter from "incident.data.id"
332
+
And body with value {"data": {"attributes": {"document_url": "https://app.datadoghq.com/notebook/123", "title": "Postmortem for IR-123"}, "type": "incident_postmortems"}}
333
+
When the request is sent
334
+
Then the response status is 201 CREATED
335
+
And the response "data.type" is equal to "incident_postmortems"
336
+
And the response "data.relationships.incident.data.id" has the same value as "incident.data.id"
337
+
338
+
@generated@skip@team:DataDog/incident-app
339
+
Scenario: Create postmortem for an incident returns "Conflict" response
340
+
Given operation "CreateIncidentPostmortem" enabled
341
+
And new "CreateIncidentPostmortem" request
342
+
And request contains "incident_id" parameter from "REPLACE.ME"
343
+
And body with value {"data": {"attributes": {"document_url": "https://app.datadoghq.com/notebook/123", "title": "Postmortem for IR-123"}, "type": "incident_postmortems"}}
344
+
When the request is sent
345
+
Then the response status is 409 Conflict
346
+
347
+
@generated@skip@team:DataDog/incident-app
348
+
Scenario: Create postmortem for an incident returns "Not Found" response
349
+
Given operation "CreateIncidentPostmortem" enabled
350
+
And new "CreateIncidentPostmortem" request
351
+
And request contains "incident_id" parameter from "REPLACE.ME"
352
+
And body with value {"data": {"attributes": {"document_url": "https://app.datadoghq.com/notebook/123", "title": "Postmortem for IR-123"}, "type": "incident_postmortems"}}
0 commit comments