CrossNamespace: e2e test to verify event delivery for broker and trigger#7933
Conversation
There was a problem hiding this comment.
A different test structure could be to create 2 environments so that you don't need to create your namespaces
brokerEnvCtx, brokerEnv := global.Environment(
knative.WithKnativeNamespace(system.Namespace()),
knative.WithLoggingConfig,
knative.WithTracingConfig,
k8s.WithEventListener,
environment.Managed(t),
)
triggerEnvCtx, triggerEnv := global.Environment(
knative.WithKnativeNamespace(system.Namespace()),
knative.WithLoggingConfig,
knative.WithTracingConfig,
k8s.WithEventListener,
environment.Managed(t),
)
brokerEnv.Test(brokerEnvCtx, t, broker.GoesReady(...))
triggerEnv.Test(triggerEnvCtx, t, trigger.CrossNamespaceEventLink(brokerEnvCtx, ...))
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7933 +/- ##
==========================================
- Coverage 67.85% 67.80% -0.05%
==========================================
Files 367 367
Lines 17356 17377 +21
==========================================
+ Hits 11777 11783 +6
- Misses 4844 4859 +15
Partials 735 735 ☔ View full report in Codecov by Sentry. |
|
/test reconciler-tests |
|
/test reconciler-tests |
|
@yijie-04 can you rebase this PR? |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, yijie-04 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 |
|
/test reconciler-tests |
Signed-off-by: Calum Murray <cmurray@redhat.com>
|
/cc @Leo6Leo Can you TAL? I've added a decent amount of my code to this PR so it would be good to get the final LGTM from someone else |
|
@Cali0707 I think there are also some tab/space issues for the license |
Cali0707
left a comment
There was a problem hiding this comment.
These should fix the license issues
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Co-authored-by: Calum Murray <cmurray@redhat.com>
Leo6Leo
left a comment
There was a problem hiding this comment.
Only one nit, otherwise, it looks great to me!
|
/retest |
|
/test reconciler-tests |
|
/retest |
|
/lgtm |
Fixes #7927
Proposed Changes
We should have an e2e test to verify that event delivery for broker and trigger when they are in different namespaces.
Pre-review Checklist
Release Note
Docs