@@ -334,15 +334,15 @@ Feature: Incidents
334334 Scenario : Create postmortem template returns "Bad Request" response
335335 Given operation "CreateIncidentPostmortemTemplate" enabled
336336 And new "CreateIncidentPostmortemTemplate" request
337- And body with value {"data" : {"attributes" : {"name" : "Standard Postmortem Template" }, "type" : "postmortem_template " }}
337+ And body with value {"data" : {"attributes" : {"confluence_postmortem_settings" : { "account_id" : "123456" , "parent_id" : "345678" , "space_id" : "789012" }, "content" : "# Overview \n\n # What Happened \n\n # Timeline \n\n # Action Items" , "google_docs_postmortem_settings" : { "account_id" : "123456" , "parent_folder_id" : "789012" }, "is_default" : "2024-01-01T00:00:00+00:00" , "location" : "datadog_notebooks" , " name" : "Standard Postmortem Template" }, "id" : "00000000-0000-0000-0000-000000000000" , "relationships" : { "incident_type" : { "data" : { "id" : "00000000-0000-0000-0000-000000000009" , " type" : "incident_types" }}}, "type" : "postmortem_templates " }}
338338 When the request is sent
339339 Then the response status is 400 Bad Request
340340
341341 @generated @skip @team:DataDog/incident-app
342342 Scenario : Create postmortem template returns "Created" response
343343 Given operation "CreateIncidentPostmortemTemplate" enabled
344344 And new "CreateIncidentPostmortemTemplate" request
345- And body with value {"data" : {"attributes" : {"name" : "Standard Postmortem Template" }, "type" : "postmortem_template " }}
345+ And body with value {"data" : {"attributes" : {"confluence_postmortem_settings" : { "account_id" : "123456" , "parent_id" : "345678" , "space_id" : "789012" }, "content" : "# Overview \n\n # What Happened \n\n # Timeline \n\n # Action Items" , "google_docs_postmortem_settings" : { "account_id" : "123456" , "parent_folder_id" : "789012" }, "is_default" : "2024-01-01T00:00:00+00:00" , "location" : "datadog_notebooks" , " name" : "Standard Postmortem Template" }, "id" : "00000000-0000-0000-0000-000000000000" , "relationships" : { "incident_type" : { "data" : { "id" : "00000000-0000-0000-0000-000000000009" , " type" : "incident_types" }}}, "type" : "postmortem_templates " }}
346346 When the request is sent
347347 Then the response status is 201 Created
348348
@@ -1590,7 +1590,7 @@ Feature: Incidents
15901590 Given operation "UpdateIncidentPostmortemTemplate" enabled
15911591 And new "UpdateIncidentPostmortemTemplate" request
15921592 And request contains "template_id" parameter from "REPLACE.ME"
1593- And body with value {"data" : {"attributes" : {"name" : "Standard Postmortem Template" }, "type" : "postmortem_template " }}
1593+ And body with value {"data" : {"attributes" : {"confluence_postmortem_settings" : { "account_id" : "123456" , "parent_id" : "345678" , "space_id" : "789012" }, "content" : "# Overview \n\n # What Happened \n\n # Timeline \n\n # Action Items" , "google_docs_postmortem_settings" : { "account_id" : "123456" , "parent_folder_id" : "789012" }, "is_default" : "2024-01-01T00:00:00+00:00" , "location" : "datadog_notebooks" , " name" : "Standard Postmortem Template" }, "id" : "00000000-0000-0000-0000-000000000000" , "relationships" : { "incident_type" : { "data" : { "id" : "00000000-0000-0000-0000-000000000009" , " type" : "incident_types" }}}, "type" : "postmortem_templates " }}
15941594 When the request is sent
15951595 Then the response status is 400 Bad Request
15961596
@@ -1599,7 +1599,7 @@ Feature: Incidents
15991599 Given operation "UpdateIncidentPostmortemTemplate" enabled
16001600 And new "UpdateIncidentPostmortemTemplate" request
16011601 And request contains "template_id" parameter from "REPLACE.ME"
1602- And body with value {"data" : {"attributes" : {"name" : "Standard Postmortem Template" }, "type" : "postmortem_template " }}
1602+ And body with value {"data" : {"attributes" : {"confluence_postmortem_settings" : { "account_id" : "123456" , "parent_id" : "345678" , "space_id" : "789012" }, "content" : "# Overview \n\n # What Happened \n\n # Timeline \n\n # Action Items" , "google_docs_postmortem_settings" : { "account_id" : "123456" , "parent_folder_id" : "789012" }, "is_default" : "2024-01-01T00:00:00+00:00" , "location" : "datadog_notebooks" , " name" : "Standard Postmortem Template" }, "id" : "00000000-0000-0000-0000-000000000000" , "relationships" : { "incident_type" : { "data" : { "id" : "00000000-0000-0000-0000-000000000009" , " type" : "incident_types" }}}, "type" : "postmortem_templates " }}
16031603 When the request is sent
16041604 Then the response status is 404 Not Found
16051605
@@ -1608,6 +1608,6 @@ Feature: Incidents
16081608 Given operation "UpdateIncidentPostmortemTemplate" enabled
16091609 And new "UpdateIncidentPostmortemTemplate" request
16101610 And request contains "template_id" parameter from "REPLACE.ME"
1611- And body with value {"data" : {"attributes" : {"name" : "Standard Postmortem Template" }, "type" : "postmortem_template " }}
1611+ And body with value {"data" : {"attributes" : {"confluence_postmortem_settings" : { "account_id" : "123456" , "parent_id" : "345678" , "space_id" : "789012" }, "content" : "# Overview \n\n # What Happened \n\n # Timeline \n\n # Action Items" , "google_docs_postmortem_settings" : { "account_id" : "123456" , "parent_folder_id" : "789012" }, "is_default" : "2024-01-01T00:00:00+00:00" , "location" : "datadog_notebooks" , " name" : "Standard Postmortem Template" }, "id" : "00000000-0000-0000-0000-000000000000" , "relationships" : { "incident_type" : { "data" : { "id" : "00000000-0000-0000-0000-000000000009" , " type" : "incident_types" }}}, "type" : "postmortem_templates " }}
16121612 When the request is sent
16131613 Then the response status is 200 OK
0 commit comments