-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TestBuilder for TriggerCRD #680
Conversation
0fabe5f
to
cfafc99
Compare
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
Should we wait till TEP is merged before we add this? |
9132c29
to
e418002
Compare
The following is the coverage report on the affected files.
|
@dibyom Can we get this merged now? |
The following is the coverage report on the affected files.
|
@@ -373,18 +399,6 @@ func Test_ResolveTrigger(t *testing.T) { | |||
}, | |||
want: ResolvedTrigger{TriggerBindings: []*triggersv1.TriggerBinding{}, ClusterTriggerBindings: []*triggersv1.ClusterTriggerBinding{}, TriggerTemplate: &tt}, | |||
}, | |||
{ | |||
name: "multiple bindings with builder", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this as we already have similar test just below.
pkg/template/resource_test.go
Outdated
trigger: bldr.Trigger("my-triggertemplate", "v1alpha1", | ||
bldr.EventListenerTriggerBinding("invalid-tb-name", "", "invalid-tb-name", "v1alpha1"), | ||
), | ||
trigger: func() triggersv1.EventListenerTrigger { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's switch these tests to directly use triggersv1.EventListenerTrigger
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
TestBuilder for TriggerCRD added. Also, Eventlistener test builder modified to remove the Trigger function used internally.
The following is the coverage report on the affected files.
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
TestBuilder for TriggerCRD added. Also, Eventlistener test builder modified to remove the Trigger function used internally.
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.