Skip to content

Commit

Permalink
Adapt unit test for webhook enable
Browse files Browse the repository at this point in the history
  • Loading branch information
muralov committed Sep 20, 2023
1 parent 7733fa1 commit 45d67cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
kymalogger "github.com/kyma-project/kyma/common/logging/logger"

eventingv1alpha1 "github.com/kyma-project/kyma/components/eventing-controller/api/v1alpha1"
"github.com/kyma-project/kyma/components/eventing-controller/internal/featureflags"
"github.com/kyma-project/kyma/components/eventing-controller/logger"
"github.com/kyma-project/kyma/components/eventing-controller/pkg/deployment"
"github.com/kyma-project/kyma/components/eventing-controller/pkg/env"
Expand Down Expand Up @@ -78,6 +79,8 @@ var _ = BeforeSuite(func(done Done) {
_, err2 = rand.Read(newCABundle)
Expect(err2).NotTo(HaveOccurred())

featureflags.SetEventingWebhookAuthEnabled(false)

// setup dummy mutating webhook
url := "https://eventing-controller.kyma-system.svc.cluster.local"
sideEffectClassNone := admissionv1.SideEffectClassNone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func Test_handleKymaSubModified(t *testing.T) {
givenKymaSub: &eventingv1alpha2.Subscription{
Status: eventingv1alpha2.SubscriptionStatus{
Backend: eventingv1alpha2.Backend{
Ev2hash: int64(-9219276050977208880),
EventMeshLocalHash: int64(-9219276050977208880),
},
},
},
Expand Down

0 comments on commit 45d67cd

Please sign in to comment.