@@ -73,7 +73,7 @@ func TestSourceListTypesNoSourcesWithJsonOutput(t *testing.T) {
7373
7474func TestSourceListTypes (t * testing.T ) {
7575 output , err := sourceFakeCmd ([]string {"source" , "list-types" },
76- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
76+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
7777 newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
7878 )
7979 assert .NilError (t , err )
@@ -108,7 +108,7 @@ func TestSourceListNoSourcesInstalled(t *testing.T) {
108108
109109func TestSourceListEmpty (t * testing.T ) {
110110 output , err := sourceFakeCmd ([]string {"source" , "list" , "-o" , "json" },
111- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
111+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
112112 )
113113 assert .NilError (t , err )
114114 outputJson := strings .Join (output [:], "\n " )
@@ -117,10 +117,10 @@ func TestSourceListEmpty(t *testing.T) {
117117
118118func TestSourceList (t * testing.T ) {
119119 output , err := sourceFakeCmd ([]string {"source" , "list" },
120- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
120+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
121121 newSourceCRDObjWithSpec ("sinkbindings" , "sources.knative.dev" , "v1" , "SinkBinding" ),
122122 newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
123- newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1beta2 " , "PingSource" ),
123+ newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1 " , "PingSource" ),
124124 newSourceUnstructuredObj ("s1" , "sources.knative.dev/v1" , "SinkBinding" ),
125125 newSourceUnstructuredObj ("a1" , "sources.knative.dev/v1" , "ApiServerSource" ),
126126 )
@@ -145,8 +145,8 @@ func TestSourceListUntyped(t *testing.T) {
145145
146146func TestSourceListNoHeaders (t * testing.T ) {
147147 output , err := sourceFakeCmd ([]string {"source" , "list" , "--no-headers" },
148- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
149- newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1beta2 " , "PingSource" ),
148+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
149+ newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1 " , "PingSource" ),
150150 )
151151 assert .NilError (t , err )
152152 assert .Check (t , util .ContainsNone (output [0 ], "NAME" , "TYPE" , "RESOURCE" , "SINK" , "READY" ))
@@ -208,10 +208,10 @@ func newSourceUnstructuredObj(name, apiVersion, kind string) *unstructured.Unstr
208208
209209func TestSourceListAllNamespace (t * testing.T ) {
210210 output , err := sourceFakeCmd ([]string {"source" , "list" , "--all-namespaces" },
211- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
211+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
212212 newSourceCRDObjWithSpec ("sinkbindings" , "sources.knative.dev" , "v1" , "SinkBinding" ),
213213 newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
214- newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1beta2 " , "PingSource" ),
214+ newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1 " , "PingSource" ),
215215 newSourceUnstructuredObj ("s1" , "sources.knative.dev/v1" , "SinkBinding" ),
216216 newSourceUnstructuredObj ("a1" , "sources.knative.dev/v1" , "ApiServerSource" ),
217217 )
0 commit comments