Skip to content

Commit

Permalink
fix: Add valid issuesFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
mbazhlekova committed Nov 8, 2023
1 parent 9883c83 commit c8e2636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/workflows/workflows_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func TestIntegrationCreateWorkflowWithoutNotificationTriggers(t *testing.T) {
defer cleanupWorkflow(t, &createResult.Workflow)
var createdWorkflow = createResult.Workflow

require.Equal(t, []AiWorkflowsNotificationTrigger(nil), createdWorkflow.DestinationConfigurations[0].NotificationTriggers)
require.Equal(t, []AiWorkflowsNotificationTrigger{"ACKNOWLEDGED", "ACTIVATED", "CLOSED", "PRIORITY_CHANGED"}, createdWorkflow.DestinationConfigurations[0].NotificationTriggers)
}

func TestIntegrationDeleteWorkflow_CanDeleteChannels(t *testing.T) {
Expand Down Expand Up @@ -235,7 +235,7 @@ func TestIntegrationUpdateWorkflow_UpdateEverything(t *testing.T) {
Name: "filter-test-update",
Type: AiWorkflowsFilterTypeTypes.FILTER,
Predicates: []AiWorkflowsPredicateInput{{
Attribute: "source",
Attribute: "accumulations.sources",
Operator: AiWorkflowsOperatorTypes.CONTAINS,
Values: []string{"servicenow"},
}},
Expand Down Expand Up @@ -453,7 +453,7 @@ func generateCreateWorkflowInput(channel *notifications.AiNotificationsChannel,
Name: "filter-test",
Type: AiWorkflowsFilterTypeTypes.FILTER,
Predicates: []AiWorkflowsPredicateInput{{
Attribute: "source",
Attribute: "accumulations.sources",
Operator: AiWorkflowsOperatorTypes.CONTAINS,
Values: []string{"newrelic"},
}},
Expand Down

0 comments on commit c8e2636

Please sign in to comment.