diff --git a/internal/controller/eventing/integrationtests/controller/integration_test.go b/internal/controller/eventing/integrationtests/controller/integration_test.go index 5dd81669..2298dbf8 100644 --- a/internal/controller/eventing/integrationtests/controller/integration_test.go +++ b/internal/controller/eventing/integrationtests/controller/integration_test.go @@ -606,6 +606,7 @@ func Test_DeleteEventingCR(t *testing.T) { utils.WithEventMeshBackend("test-secret-name"), utils.WithEventingPublisherData(1, 1, "199m", "99Mi", "399m", "199Mi"), utils.WithEventingEventTypePrefix("test-prefix"), + utils.WithEventingDomain(utils.Domain), ), givenSubscription: utils.NewSubscription("test-eventmesh-subscription", "test-eventmesh-namespace"), wantMatches: gomega.And( diff --git a/test/utils/utils.go b/test/utils/utils.go index e3c6ec3c..ec5e8c7c 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -326,30 +326,16 @@ func NewSubscription(name, namespace string) *eventinv1alpha2.Subscription { } } -type ConfigMapOption func(*v1.ConfigMap) - -func NewConfigMap(name, namespace string, opts ...ConfigMapOption) *v1.ConfigMap { +func NewConfigMap(name, namespace string) *v1.ConfigMap { cm := &v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: name, Namespace: namespace, }, } - for _, opt := range opts { - opt(cm) - } return cm } -func WithConfigMapData(key, value string) ConfigMapOption { - return func(cm *v1.ConfigMap) { - if cm.Data == nil { - cm.Data = map[string]string{} - } - cm.Data[key] = value - } -} - func FindObjectByKind(kind string, objects []client.Object) (client.Object, error) { for _, obj := range objects { if obj.GetObjectKind().GroupVersionKind().Kind == kind {