feat(executor/rabbitmq): Add support for RPC#798
Merged
Conversation
Introduced new client type to use for testing RPC pattern using Direct Reply-to. Signed-off-by: Tomaž Završnik <tzavrsnik@gmail.com>
8a4bbb8 to
0e2a062
Compare
yesnault
requested changes
Aug 13, 2024
Member
yesnault
left a comment
There was a problem hiding this comment.
Thank you @docknight
Can you provide some documentation about that into
https://github.com/ovh/venom/blob/master/executors/rabbitmq/README.md please?
Signed-off-by: Tomaž Završnik <tzavrsnik@gmail.com>
Contributor
Author
|
@yesnault I've extended the documentation with an introduction of supported execution types and an example of using the RPC execution type in a testsuite. |
yesnault
approved these changes
Aug 16, 2024
Member
|
Thank you @docknight |
storagebits
pushed a commit
to storagebits/venom
that referenced
this pull request
Apr 17, 2026
* feat(executor/rabbitmq): Add support for RPC Introduced new client type to use for testing RPC pattern using Direct Reply-to. Signed-off-by: Tomaž Završnik <tzavrsnik@gmail.com> * docs(executor/rabbitmq): Update RabbitMQ executor docs. Signed-off-by: Tomaž Završnik <tzavrsnik@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Introduced new client type to use for testing RPC pattern using Direct Reply-to.
This can not be achieved using existing client types (publisher and subscriber), because a Direct reply-to has some specific requirements and the client must have a reply consumer running before publishing a request.
The new client type is simply referred to as 'client' to indicate a client-server communication using RPC pattern.
It can be used to test a server that is expected to respond to the received message by sending a reply using Direct Reply-to feature of RabbitMQ.
Usage
Example testsuite:
In the above example, a direct-reply-to consumer will first be started and then a message will be published to the exchange using the provided routing key. Then, the test executor will wait for the reply to be received on the direct reply queue. Existing logic of the subscriber client type will be used to parse the results, close the connection and validate against assertions.