| <aid="mutationescalationpolicydestroyerrors"></a>`errors` | [`[String!]!`](#string) | Errors encountered during execution of the mutation. |
| <aid="mutationescalationpolicydestroyescalationpolicy"></a>`escalationPolicy` | [`EscalationPolicyType`](#escalationpolicytype) | The escalation policy. |
### `Mutation.escalationPolicyUpdate`
Input type: `EscalationPolicyUpdateInput`
#### Arguments
| Name | Type | Description |
| ---- | ---- | ----------- |
| <aid="mutationescalationpolicyupdateclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
| <aid="mutationescalationpolicyupdatedescription"></a>`description` | [`String`](#string) | The description of the escalation policy. |
| <aid="mutationescalationpolicyupdateid"></a>`id` | [`IncidentManagementEscalationPolicyID!`](#incidentmanagementescalationpolicyid) | The ID of the on-call schedule to create the on-call rotation in. |
| <aid="mutationescalationpolicyupdatename"></a>`name` | [`String`](#string) | The name of the escalation policy. |
| <aid="mutationescalationpolicyupdaterules"></a>`rules` | [`[EscalationRuleInput!]`](#escalationruleinput) | The steps of the escalation policy. |
#### Fields
| Name | Type | Description |
| ---- | ---- | ----------- |
| <aid="mutationescalationpolicyupdateclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
| <aid="mutationescalationpolicyupdateerrors"></a>`errors` | [`[String!]!`](#string) | Errors encountered during execution of the mutation. |
| <aid="mutationescalationpolicyupdateescalationpolicy"></a>`escalationPolicy` | [`EscalationPolicyType`](#escalationpolicytype) | The escalation policy. |
it_behaves_like'raises a resource not available error','The oncall schedule for iid 2 could not be found'
it_behaves_like'returns a GraphQL error','All escalations rules must have a schedule in the same project as the policy'
context'user does not have permission for project'do
beforedo
project.add_reporter(current_user)
end
it_behaves_like'raises a resource not available error',"The resource that you are attempting to access does not exist or you don't have permission to perform this action"
it_behaves_like'raises a resource not available error'
end
end
end
...
...
@@ -106,7 +109,7 @@ RSpec.describe Mutations::IncidentManagement::EscalationPolicy::Create do
project.add_reporter(current_user)
end
it_behaves_like'raises a resource not available error',"The resource that you are attempting to access does not exist or you don't have permission to perform this action"
it_behaves_like'raises a resource not available error'
end
end
...
...
@@ -115,7 +118,7 @@ RSpec.describe Mutations::IncidentManagement::EscalationPolicy::Create do
args[:project_path]='something/incorrect'
end
it_behaves_like'raises a resource not available error','The project could not be found'
it_behaves_like'raises a resource not available error'