Skip to content

test: Examples for bypass map and bypass source transformer for e2e tests#164

Merged
vaibhavtiwari33 merged 7 commits intomainfrom
examples-for-bypass-test
Jan 17, 2026
Merged

test: Examples for bypass map and bypass source transformer for e2e tests#164
vaibhavtiwari33 merged 7 commits intomainfrom
examples-for-bypass-test

Conversation

@vaibhavtiwari33
Copy link
Contributor

@vaibhavtiwari33 vaibhavtiwari33 commented Jan 15, 2026

This PR aims to add examples that implement map and source transformers that help with bypass router e2e testing.

Both of the implementations use the same logic:

  • Add "fallback" tag to all the messages which have the word "fallback" in their value.
  • Add "onSuccess" tag to all the messages which have the word "onSuccess" in their value.
  • Add "sink" tag to all the messages which have the word "primary" in their value.

The manifest used for testing in e2e test has also been added.

Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
Copy link
Member

@vigith vigith left a comment

Choose a reason for hiding this comment

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

please comment the main.rs so users will understand what you are doing and what the intent is.

Comment on lines +29 to +31
if input_str.contains("primary") {
tags.push("sink".to_string());
}
Copy link
Member

Choose a reason for hiding this comment

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

what is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the docs in main.rs

Based on the content of the message, we're adding tags to the message so that the bypass router can forward these messages to the respective sinks.

Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
@vaibhavtiwari33 vaibhavtiwari33 changed the title Examples for bypass map and bypass source transformer for e2e tests test: Examples for bypass map and bypass source transformer for e2e tests Jan 16, 2026
@vaibhavtiwari33 vaibhavtiwari33 self-assigned this Jan 16, 2026
Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
Signed-off-by: Vaibhav Tiwari <vaibhav.tiwari33@gmail.com>
@vaibhavtiwari33 vaibhavtiwari33 merged commit 9237e14 into main Jan 17, 2026
2 checks passed
@vaibhavtiwari33 vaibhavtiwari33 deleted the examples-for-bypass-test branch January 17, 2026 00:59
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.

2 participants