Skip to content

Commit

Permalink
Adding test for SSL/NoAuth (knative-extensions#3463)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
  • Loading branch information
matzew committed Nov 10, 2023
1 parent 7d9b416 commit a948458
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/e2e_new/broker_sasl_ssl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ func TestBrokerAuthSsl(t *testing.T) {
env.Test(ctx, t, features.SetupBrokerAuthSsl(ctx))
}

func TestBrokerNoAuthSsl(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, features.SetupBrokerNoAuthSsl(ctx))
}

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

Expand Down
5 changes: 5 additions & 0 deletions test/rekt/features/broker_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ func SetupBrokerAuthSsl(ctx context.Context) *feature.Feature {
kafkaauthsecret.WithSslData(ctx))
}

func SetupBrokerNoAuthSsl(ctx context.Context) *feature.Feature {
return SetupBrokerAuth(testpkg.BootstrapServersTlsNoAuth,
kafkaauthsecret.WithTlsNoAuthData(ctx))
}

func SetupBrokerAuthSaslPlaintextScram512(ctx context.Context) *feature.Feature {
return SetupBrokerAuth(testpkg.BootstrapServersSaslPlaintext,
kafkaauthsecret.WithSaslPlaintextScram512Data(ctx))
Expand Down

0 comments on commit a948458

Please sign in to comment.