ApiServerSource smoke tests
@@ -22,6 +22,7 @@ import (
"strconv"
"testing"
+ "knative.dev/eventing/test/rekt/features/apiserversource"
_ "knative.dev/pkg/system/testing"
"knative.dev/eventing/pkg/apis/eventing"
@@ -127,3 +128,23 @@ func TestSmoke_ContainerSource(t *testing.T) {
env.Test(ctx, t, containersource.GoesReady(name))
}
}
+
+// TestSmoke_ApiServerSource
+func TestSmoke_ApiServerSource(t *testing.T) {
+ t.Parallel()
+
+ ctx, env := global.Environment()
+ t.Cleanup(env.Finish)
+
+ names := []string{
+ "customname",
+ "name-with-dash",
+ "name1with2numbers3",
+ "name63-0123456789012345678901234567890123456789012345678901234",
+ }
+
+ for _, name := range names {
+ env.Test(ctx, t, apiserversource.Install(name))
+ env.Test(ctx, t, apiserversource.GoesReady(name))
+ }
+}
