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

Create subscriptions predicates #70

Open
virgs opened this issue Oct 23, 2020 · 0 comments
Open

Create subscriptions predicates #70

virgs opened this issue Oct 23, 2020 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@virgs
Copy link
Member

virgs commented Oct 23, 2020

Is your feature request related to a problem? Please describe.
Sometimes, while executing tests, is not unusual to receive not related messages. eg. You're testing a queue subscription while the system is up and running, therefore a lot of not test related messages may be consumed and the expected one ignored.

Describe the solution you'd like
It'd be interesting to explicitly declare which message you're interested. Let's say, I'm interested in messages with HTTP header key: interesting-value. I think this predicate should have the same params as the hooks scripts. Something like:

subscriptions:
    - type: mqtt
       ....
       predicate: JSON.parse(body).something === `interesting`
@virgs virgs added the help wanted Extra attention is needed label Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant