Skip to content

Commit

Permalink
Add TestChannelSubscriptionEventTypeAutoCreate
Browse files Browse the repository at this point in the history
This tests eventype reference for KafkaChannel when the receiver replies
back
  • Loading branch information
mgencur committed Dec 10, 2024
1 parent 21f8e98 commit 09015d4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/e2e_new_channel/kafka_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"testing"
"time"

"knative.dev/eventing/test/experimental/features/eventtype_autocreate"
"knative.dev/eventing/test/rekt/features/channel"
"knative.dev/eventing/test/rekt/features/oidc"

Expand Down Expand Up @@ -164,3 +165,17 @@ func TestKafkaChannelKedaScaling(t *testing.T) {

env.Test(ctx, t, features.ChannelScalesToZeroWithKeda())
}

func TestChannelSubscriptionEventTypeAutoCreate(t *testing.T) {
t.Parallel()

ctx, env := global.Environment(
knative.WithKnativeNamespace(system.Namespace()),
knative.WithLoggingConfig,
knative.WithTracingConfig,
k8s.WithEventListener,
environment.Managed(t),
)

env.Test(ctx, t, eventtype_autocreate.AutoCreateEventTypesOnSubscription())
}

0 comments on commit 09015d4

Please sign in to comment.