Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46771,11 +46771,6 @@ components:
description: An optional message shown to users when they declare an incident of this type.
example: "Create an incident here"
type: string
disable_out_of_the_box_postmortem_template:
default: false
description: Whether the out-of-the-box postmortem template is disabled for incidents of this type.
example: false
type: boolean
editable_timestamps:
default: false
description: Whether responders can edit incident timestamps for incidents of this type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def openapi_types(_):
"allow_incident_deletion": (bool,),
"allow_workflows": (bool,),
"create_message": (str,),
"disable_out_of_the_box_postmortem_template": (bool,),
"editable_timestamps": (bool,),
"private_incidents": (bool,),
"private_incidents_by_default": (bool,),
Expand All @@ -38,7 +37,6 @@ def openapi_types(_):
"allow_incident_deletion": "allow_incident_deletion",
"allow_workflows": "allow_workflows",
"create_message": "create_message",
"disable_out_of_the_box_postmortem_template": "disable_out_of_the_box_postmortem_template",
"editable_timestamps": "editable_timestamps",
"private_incidents": "private_incidents",
"private_incidents_by_default": "private_incidents_by_default",
Expand All @@ -51,7 +49,6 @@ def __init__(
allow_incident_deletion: Union[bool, UnsetType] = unset,
allow_workflows: Union[bool, UnsetType] = unset,
create_message: Union[str, UnsetType] = unset,
disable_out_of_the_box_postmortem_template: Union[bool, UnsetType] = unset,
editable_timestamps: Union[bool, UnsetType] = unset,
private_incidents: Union[bool, UnsetType] = unset,
private_incidents_by_default: Union[bool, UnsetType] = unset,
Expand All @@ -71,9 +68,6 @@ def __init__(
:param create_message: An optional message shown to users when they declare an incident of this type.
:type create_message: str, optional

:param disable_out_of_the_box_postmortem_template: Whether the out-of-the-box postmortem template is disabled for incidents of this type.
:type disable_out_of_the_box_postmortem_template: bool, optional

:param editable_timestamps: Whether responders can edit incident timestamps for incidents of this type.
:type editable_timestamps: bool, optional

Expand All @@ -95,8 +89,6 @@ def __init__(
kwargs["allow_workflows"] = allow_workflows
if create_message is not unset:
kwargs["create_message"] = create_message
if disable_out_of_the_box_postmortem_template is not unset:
kwargs["disable_out_of_the_box_postmortem_template"] = disable_out_of_the_box_postmortem_template
if editable_timestamps is not unset:
kwargs["editable_timestamps"] = editable_timestamps
if private_incidents is not unset:
Expand Down
8 changes: 4 additions & 4 deletions tests/v2/features/incidents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ Feature: Incidents
Scenario: Create an incident type returns "Bad Request" response
Given operation "CreateIncidentType" enabled
And new "CreateIncidentType" request
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}}
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -182,7 +182,7 @@ Feature: Incidents
Scenario: Create an incident type returns "Not Found" response
Given operation "CreateIncidentType" enabled
And new "CreateIncidentType" request
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}}
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data.", "is_default": false, "name": "Security Incident"}, "type": "incident_types"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down Expand Up @@ -1298,7 +1298,7 @@ Feature: Incidents
Given operation "UpdateIncidentType" enabled
And new "UpdateIncidentType" request
And request contains "incident_type_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}}
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -1307,7 +1307,7 @@ Feature: Incidents
Given operation "UpdateIncidentType" enabled
And new "UpdateIncidentType" request
And request contains "incident_type_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "disable_out_of_the_box_postmortem_template": false, "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}}
And body with value {"data": {"attributes": {"configuration": {"allow_incident_deletion": false, "allow_workflows": true, "create_message": "Create an incident here", "editable_timestamps": false, "private_incidents": false, "private_incidents_by_default": false, "slug_source": "default", "test_incidents": true}, "description": "Any incidents that harm (or have the potential to) the confidentiality, integrity, or availability of our data. Note: This will notify the security team.", "is_default": false, "name": "Security Incident"}, "id": "00000000-0000-0000-0000-000000000000", "type": "incident_types"}}
When the request is sent
Then the response status is 404 Not Found

Expand Down
Loading