test: expose eventing broker for testing#3364
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matejvasek 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 |
This allows tests to easily post events to the broker directly. Signed-off-by: Matej Vašek <matejvasek@gmail.com>
ed7ac81 to
8314ea1
Compare
|
PTAL @lkingland @gauron99 |
|
cc @Kunal1522 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3364 +/- ##
==========================================
- Coverage 55.12% 55.10% -0.03%
==========================================
Files 170 170
Lines 19955 19955
==========================================
- Hits 11000 10996 -4
- Misses 7879 7881 +2
- Partials 1076 1078 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/hold unhold whenever you please |
|
/unhold |
This allows tests to easily post events to the broker directly. Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Changes
http://broker.localtest.me/.This allows tests to easily send event to broker by doing HTTP POST to
http://broker.localtest.me/<ns>/<broker>.Note that if we want to use this the test should not hardcode
http://broker.localtest.mebut rather use some test envvar (e.g.FUNC_E2E_BROKER_EXTERNAL_URL).Also we should consider not exposing this (not merging this PR) and rather just using our custom tunneling transport to call the broker as internal service.