Skip to content
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

fix: add handling of schema_validation_failed ctx for rule testing #13032

Conversation

kjellwinblad
Copy link
Contributor

@kjellwinblad kjellwinblad commented May 13, 2024

Before this commit, the backend could not handle the test context for message_validation_failed events that could be sent from the dashboard since no handling code for this contexts existed in the backend. This has now been fixed by adding such handling code.

Fixes:
https://emqx.atlassian.net/browse/EMQX-12354

Release version: e5.7

Summary

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • [] Added property-based tests for code which performs user input validation
  • [] Changed lines covered in coverage report
  • [] Change log has been added to changes/(ce|ee)/(feat|perf|fix|breaking)-<PR-id>.en.md files
  • For internal contributor: there is a jira ticket to track this change
  • [] Created PR to emqx-docs if documentation update is required, or link to a follow-up jira ticket
  • Schema changes are backward compatible

@kjellwinblad kjellwinblad requested a review from a team as a code owner May 13, 2024 14:39
zmstone
zmstone previously approved these changes May 14, 2024
@kjellwinblad kjellwinblad force-pushed the kjell/no_ctx_message_validation_failed/EMQX-12354 branch from 6b9de6f to 40d6e82 Compare May 14, 2024 10:17
Before this commit, the backend could not handle the test context for
message_validation_failed events that could be sent from the dashboard
since no handling code for this contexts existed in the backend. This
has now been fixed by adding such handling code.

Fixes:
https://emqx.atlassian.net/browse/EMQX-12354
@thalesmg thalesmg force-pushed the kjell/no_ctx_message_validation_failed/EMQX-12354 branch from 40d6e82 to e811f4a Compare May 14, 2024 16:07
Copy link
Contributor Author

@kjellwinblad kjellwinblad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thalesmg thalesmg merged commit 2eb1bb2 into emqx:release-57 May 15, 2024
173 of 174 checks passed
@thalesmg thalesmg deleted the kjell/no_ctx_message_validation_failed/EMQX-12354 branch May 15, 2024 14:20
@emqxqa
Copy link

emqxqa commented May 15, 2024

TestExecution

@HJianBo HJianBo changed the title fix: add handling of message_validation_failed ctx for rule testing fix: add handling of schema_validation_failed ctx for rule testing May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants