-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][test] Add integration test for entry filters #17396
[improve][test] Add integration test for entry filters #17396
Conversation
/pulsarbot rerun-failure-checks |
1 similar comment
/pulsarbot rerun-failure-checks |
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, left a trivial comment.
String messageValue = producer.getProducerName() + "-" + i; | ||
MessageId messageId = producer.newMessage() | ||
.value(messageValue) | ||
.property("filter_property", messageValue) |
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.
Maybe we can use the static param FILTER_PROPERTY
of the class PatternEntryFilter.java
as the key here.
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.
I agree it would be cleaner, but I don't think this alone is a strong enough reason to introduce a dependency between the two maven modules these classes are in, so I decided to duplicate this string instead. Let me know what you think.
/pulsarbot rerun pulsar-ci-checks-completed |
/pulsarbot rerun pulsar-ci-checks-completed |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
Master Issue: #17132
Motivation
Add tests to prevent unintended changes to how the broker uses Entry Filters.
Modifications
PatternEntryFilter
.Verifying this change
This change added tests and can be verified as follows:
Added integration tests for entry filters
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
doc-not-needed
This change only affects tests