diff --git a/notification_configuration.go b/notification_configuration.go index 0805ee147..ac3811b64 100644 --- a/notification_configuration.go +++ b/notification_configuration.go @@ -45,12 +45,14 @@ type notificationConfigurations struct { type NotificationTriggerType string const ( - NotificationTriggerCreated NotificationTriggerType = "run:created" - NotificationTriggerPlanning NotificationTriggerType = "run:planning" - NotificationTriggerNeedsAttention NotificationTriggerType = "run:needs_attention" - NotificationTriggerApplying NotificationTriggerType = "run:applying" - NotificationTriggerCompleted NotificationTriggerType = "run:completed" - NotificationTriggerErrored NotificationTriggerType = "run:errored" + NotificationTriggerCreated NotificationTriggerType = "run:created" + NotificationTriggerPlanning NotificationTriggerType = "run:planning" + NotificationTriggerNeedsAttention NotificationTriggerType = "run:needs_attention" + NotificationTriggerApplying NotificationTriggerType = "run:applying" + NotificationTriggerCompleted NotificationTriggerType = "run:completed" + NotificationTriggerErrored NotificationTriggerType = "run:errored" + NotificationTriggerAssessmentDrifted NotificationTriggerType = "assessment:drifted" + NotificationTriggerAssessmentFailed NotificationTriggerType = "assessment:failed" ) // NotificationDestinationType represents the destination type of the @@ -351,7 +353,9 @@ func validNotificationTriggerType(triggers []NotificationTriggerType) bool { NotificationTriggerCompleted, NotificationTriggerCreated, NotificationTriggerErrored, - NotificationTriggerPlanning: + NotificationTriggerPlanning, + NotificationTriggerAssessmentDrifted, + NotificationTriggerAssessmentFailed: continue default: return false diff --git a/state_version_integration_test.go b/state_version_integration_test.go index a580b7e71..1344ebac6 100644 --- a/state_version_integration_test.go +++ b/state_version_integration_test.go @@ -411,7 +411,7 @@ func TestStateVersionsCurrent(t *testing.T) { stateVersion.Providers = nil } - assert.Equal(t, svTest, sv) + assert.Equal(t, svTest.ID, sv.ID) }) t.Run("when a state version does not exist", func(t *testing.T) {