Refactor ChannelTestRunner to ComponentTestRunner#3340
Conversation
| @@ -26,15 +26,15 @@ import ( | |||
| "knative.dev/eventing/test/lib" | |||
There was a problem hiding this comment.
how about
testlib "knative.dev/eventing/test/lib"
|
|
||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| testflags "knative.dev/eventing/test/flags" | ||
| "knative.dev/eventing/test/lib" |
There was a problem hiding this comment.
testlib "knative.dev/eventing/test/lib"
| @@ -25,11 +25,16 @@ import ( | |||
| "knative.dev/eventing/test/lib" | |||
There was a problem hiding this comment.
testlib "knative.dev/eventing/test/lib"
|
@antoineco please take a look |
antoineco
left a comment
There was a problem hiding this comment.
That's the same PR as before but split in two parts, right? Just to know if I need another in depth review or not :)
| ) | ||
|
|
||
| var channelLabels = map[string]string{ | ||
| "messaging.knative.dev/subscribable": "true", |
There was a problem hiding this comment.
This constant is defined so we should is it.
|
@antoineco yep, we agreed to split the refactoring from the conformance test |
mattmoor
left a comment
There was a problem hiding this comment.
Produced via:
gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)
goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party | grep -v wire_gen.go)
| "k8s.io/apimachinery/pkg/api/meta" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| "knative.dev/eventing/test/lib" | ||
| testlib "knative.dev/eventing/test/lib" |
There was a problem hiding this comment.
Format Go code:
| testlib "knative.dev/eventing/test/lib" |
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| "knative.dev/eventing/test/lib" | ||
| testlib "knative.dev/eventing/test/lib" | ||
| "knative.dev/eventing/pkg/apis/messaging" |
There was a problem hiding this comment.
Format Go code:
| "knative.dev/eventing/pkg/apis/messaging" | |
| "knative.dev/eventing/pkg/apis/messaging" | |
| testlib "knative.dev/eventing/test/lib" |
|
|
||
| var channelLabels = map[string]string{ | ||
| messaging.SubscribableDuckVersionAnnotation: "true", | ||
| "duck.knative.dev/addressable": "true", |
There was a problem hiding this comment.
Format Go code:
| "duck.knative.dev/addressable": "true", | |
| "duck.knative.dev/addressable": "true", |
matzew
left a comment
There was a problem hiding this comment.
/lgtm
/approve
let's see what the bot does, afterwards 🤷♂️
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Abd4llA, matzew The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
Related: #3122
Proposed Changes
test/flagspackage