@@ -73,7 +73,7 @@ func TestSourceListTypesNoSourcesWithJsonOutput(t *testing.T) {
73
73
74
74
func TestSourceListTypes (t * testing.T ) {
75
75
output , err := sourceFakeCmd ([]string {"source" , "list-types" },
76
- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
76
+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
77
77
newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
78
78
)
79
79
assert .NilError (t , err )
@@ -108,7 +108,7 @@ func TestSourceListNoSourcesInstalled(t *testing.T) {
108
108
109
109
func TestSourceListEmpty (t * testing.T ) {
110
110
output , err := sourceFakeCmd ([]string {"source" , "list" , "-o" , "json" },
111
- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
111
+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
112
112
)
113
113
assert .NilError (t , err )
114
114
outputJson := strings .Join (output [:], "\n " )
@@ -117,10 +117,10 @@ func TestSourceListEmpty(t *testing.T) {
117
117
118
118
func TestSourceList (t * testing.T ) {
119
119
output , err := sourceFakeCmd ([]string {"source" , "list" },
120
- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
120
+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
121
121
newSourceCRDObjWithSpec ("sinkbindings" , "sources.knative.dev" , "v1" , "SinkBinding" ),
122
122
newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
123
- newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1beta2 " , "PingSource" ),
123
+ newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1 " , "PingSource" ),
124
124
newSourceUnstructuredObj ("s1" , "sources.knative.dev/v1" , "SinkBinding" ),
125
125
newSourceUnstructuredObj ("a1" , "sources.knative.dev/v1" , "ApiServerSource" ),
126
126
)
@@ -145,8 +145,8 @@ func TestSourceListUntyped(t *testing.T) {
145
145
146
146
func TestSourceListNoHeaders (t * testing.T ) {
147
147
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" ),
150
150
)
151
151
assert .NilError (t , err )
152
152
assert .Check (t , util .ContainsNone (output [0 ], "NAME" , "TYPE" , "RESOURCE" , "SINK" , "READY" ))
@@ -208,10 +208,10 @@ func newSourceUnstructuredObj(name, apiVersion, kind string) *unstructured.Unstr
208
208
209
209
func TestSourceListAllNamespace (t * testing.T ) {
210
210
output , err := sourceFakeCmd ([]string {"source" , "list" , "--all-namespaces" },
211
- newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1beta2 " , "PingSource" ),
211
+ newSourceCRDObjWithSpec ("pingsources" , "sources.knative.dev" , "v1 " , "PingSource" ),
212
212
newSourceCRDObjWithSpec ("sinkbindings" , "sources.knative.dev" , "v1" , "SinkBinding" ),
213
213
newSourceCRDObjWithSpec ("apiserversources" , "sources.knative.dev" , "v1" , "ApiServerSource" ),
214
- newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1beta2 " , "PingSource" ),
214
+ newSourceUnstructuredObj ("p1" , "sources.knative.dev/v1 " , "PingSource" ),
215
215
newSourceUnstructuredObj ("s1" , "sources.knative.dev/v1" , "SinkBinding" ),
216
216
newSourceUnstructuredObj ("a1" , "sources.knative.dev/v1" , "ApiServerSource" ),
217
217
)
0 commit comments