-
Notifications
You must be signed in to change notification settings - Fork 610
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
Running validation for events on broker ingress #5275
Running validation for events on broker ingress #5275
Conversation
/assign @vaikas Not sure if the CloudEvent SDK itself should kinda to that (or similar) inside it's |
Codecov Report
@@ Coverage Diff @@
## main #5275 +/- ##
==========================================
- Coverage 83.63% 83.58% -0.05%
==========================================
Files 243 243
Lines 6879 6884 +5
==========================================
+ Hits 5753 5754 +1
- Misses 783 786 +3
- Partials 343 344 +1
Continue to review full report at Codecov.
|
@@ -132,6 +132,14 @@ func (h *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request) { | |||
return | |||
} | |||
|
|||
// run validation for the extracted event | |||
validationErr := event.Validate() | |||
if validationErr != nil { |
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.
Please add a test for this change.
/hold Please make |
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
39217ef
to
8c1efef
Compare
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
The following is the coverage report on the affected files.
|
/unhold Thanks for the test! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: n3wscott 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 |
/retest |
Signed-off-by: Matthias Wessendorf mwessend@redhat.com
Fixes #5143
Proposed Changes
Release Note
Docs