-
Notifications
You must be signed in to change notification settings - Fork 604
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
chore: refactor cross namespace test to make it reusable #8157
Conversation
Signed-off-by: Calum Murray <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8157 +/- ##
==========================================
- Coverage 67.71% 67.46% -0.26%
==========================================
Files 370 371 +1
Lines 17946 18001 +55
==========================================
- Hits 12152 12144 -8
- Misses 5020 5085 +65
+ Partials 774 772 -2 ☔ View full report in Codecov by Sentry. |
/cc @matzew |
test/rekt/crossnamespace_test.go
Outdated
@@ -50,5 +52,7 @@ func TestBrokerTriggerCrossNamespaceReference(t *testing.T) { | |||
) | |||
|
|||
// brokerEnv.Test(brokerEnvCtx, t, broker.GoesReady(brokerName)) | |||
triggerEnv.Test(triggerEnvCtx, t, trigger.CrossNamespaceEventLinks(brokerEnvCtx)) | |||
triggerEnv.Test(triggerEnvCtx, t, trigger.CrossNamespaceEventLinks(brokerEnvCtx, func(name, namespace string) feature.StepFn { | |||
return broker.Install(name, broker.WithNamespace(namespace)) |
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.
Is there a reason you didn't reuse broker.GoesReady(name, brokerresources.WithEnvConfig()...)
?
Signed-off-by: Calum Murray <[email protected]>
Signed-off-by: Calum Murray <[email protected]>
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, pierDipi 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 |
This refactors the cross namespace test to make the installation of the broker pluggable, enabling the test to be reused in EKB.
Proposed Changes