Skip to content

Commit a9d1afc

Browse files
committed
Add oidc conformance
Signed-off-by: Matthias Wessendorf <[email protected]>
1 parent a7850c1 commit a9d1afc

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

Diff for: test/rekt/features/integrationsink/features.go

+12
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,15 @@ func OIDC() *feature.Feature {
161161

162162
return f
163163
}
164+
165+
func GoesReadySimple(name string) *feature.Feature {
166+
f := feature.NewFeature()
167+
168+
// integrationSink := feature.MakeRandomK8sName("integrationsink")
169+
170+
f.Setup("install integration sink", integrationsink.Install(name))
171+
f.Setup("integrationsink is ready", integrationsink.IsReady(name))
172+
f.Setup("integrationsink is addressable", integrationsink.IsAddressable(name))
173+
174+
return f
175+
}

Diff for: test/rekt/integration_sink_test.go

+14-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ package rekt
2121

2222
import (
2323
"testing"
24+
"time"
2425

2526
"knative.dev/eventing/test/rekt/features/integrationsink"
27+
"knative.dev/eventing/test/rekt/features/oidc"
28+
"knative.dev/reconciler-test/pkg/feature"
29+
30+
integrationsinkResources "knative.dev/eventing/test/rekt/resources/integrationsink"
2631
"knative.dev/pkg/system"
2732
"knative.dev/reconciler-test/pkg/environment"
2833
"knative.dev/reconciler-test/pkg/eventshub"
@@ -67,9 +72,16 @@ func TestIntegrationSinkOIDC(t *testing.T) {
6772
knative.WithLoggingConfig,
6873
knative.WithTracingConfig,
6974
k8s.WithEventListener,
70-
eventshub.WithTLS(t),
7175
environment.Managed(t),
76+
environment.WithPollTimings(4*time.Second, 12*time.Minute),
77+
eventshub.WithTLS(t),
7278
)
7379

74-
env.Test(ctx, t, integrationsink.OIDC())
80+
name := feature.MakeRandomK8sName("integrationsink")
81+
82+
env.Prerequisite(ctx, t, integrationsink.GoesReadySimple(name))
83+
84+
env.TestSet(ctx, t, oidc.AddressableOIDCConformance(integrationsinkResources.GVR(), "IntegrationSink", name, env.Namespace()))
85+
86+
// env.Test(ctx, t, integrationsink.OIDC())
7587
}

0 commit comments

Comments
 (0)