Skip to content

Commit

Permalink
merge PingSource TLS and OIDC tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalyd committed Jun 20, 2024
1 parent 134e569 commit bbe334c
Showing 1 changed file with 24 additions and 31 deletions.
55 changes: 24 additions & 31 deletions test/rekt/pingsource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,6 @@ func TestPingSourceWithSinkRef(t *testing.T) {
env.Test(ctx, t, pingsource.SendsEventsWithSinkRef())
}

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

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

env.ParallelTest(ctx, t, pingsource.SendsEventsTLS())
env.ParallelTest(ctx, t, pingsource.SendsEventsTLSTrustBundle())
}

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

Expand Down Expand Up @@ -120,17 +103,27 @@ func TestPingSourceDataPlane_BrokerAsSinkTLS(t *testing.T) {
env.Test(ctx, t, pingsource.SendsEventsWithBrokerAsSinkTLS())
}

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

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

env.Test(ctx, t, pingsource.PingSourceSendEventOIDC())
}
func TestPingSourceTLSAndOIDC(t *testing.T) {
t.Parallel()

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

t.Run("SendsEventsTLS", func(t *testing.T) {
t.Parallel()
env.ParallelTest(ctx, t, pingsource.SendsEventsTLS())
env.ParallelTest(ctx, t, pingsource.SendsEventsTLSTrustBundle())
})

t.Run("SendsEventsOIDC", func(t *testing.T) {
t.Parallel()
env.Test(ctx, t, pingsource.PingSourceSendEventOIDC())
})
}

Check failure on line 129 in test/rekt/pingsource_test.go

View workflow job for this annotation

GitHub Actions / style / Golang / Lint

[EOF Newline] reported by reviewdog 🐶 Missing newline Raw Output: test/rekt/pingsource_test.go:129: Missing newline

0 comments on commit bbe334c

Please sign in to comment.