Skip to content

Commit

Permalink
fix finalizer test following refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tbavelier committed Jan 20, 2025
1 parent b953307 commit 052cd8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/datadoggenericresource/finalizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"sigs.k8s.io/controller-runtime/pkg/manager"

"github.com/DataDog/datadog-operator/api/datadoghq/v1alpha1"
datadoghqv1alpha1 "github.com/DataDog/datadog-operator/api/datadoghq/v1alpha1"
"github.com/go-logr/logr"
"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -65,6 +66,9 @@ func Test_handleFinalizer(t *testing.T) {
Finalizers: []string{datadogGenericResourceFinalizer},
DeletionTimestamp: &metaNow,
},
Spec: datadoghqv1alpha1.DatadogGenericResourceSpec{
Type: v1alpha1.Notebook,
},
},
).
WithStatusSubresource(&datadoghqv1alpha1.DatadogGenericResource{}).Build(),
Expand Down

0 comments on commit 052cd8f

Please sign in to comment.