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

Implemented ShadowingInterceptor #1258

Merged
merged 5 commits into from
Sep 4, 2024
Merged

Implemented ShadowingInterceptor #1258

merged 5 commits into from
Sep 4, 2024

Conversation

christiangoerdes
Copy link
Collaborator

No description provided.

- Move `ShadowingInterceptor` to a new package `shadowing`
- Refactor request handling to log status codes from shadow targets
- Update example configurations to demonstrate shadow requests
- Enhance README with instructions and configurations for running the example
- Simplify request sending logic by removing conditional check for "shadow-request-send".
- Add a short description for the interceptor to clarify its purpose.
- Enhance Javadoc for `setTargets` method to clearly explain the function and expected targets.
- Implement initial unit tests for `ShadowingInterceptor` in `ShadowingInterceptorTest`.
- Mock `Target` class to verify behavior of `getDestFromTarget` method with and without URL.
- Change visibility of `getDestFromTarget` and `performCall` methods to public for test accessibility.
- Refactor asynchronous request handling in `cloneRequestAndSend` method to improve error logging.
@christiangoerdes christiangoerdes linked an issue Sep 4, 2024 that may be closed by this pull request
@membrane-ci-server
Copy link

This pull request needs "/ok-to-test" from an authorized committer.

@christiangoerdes
Copy link
Collaborator Author

/ok-to-test

@predic8 predic8 merged commit 1bd5a25 into master Sep 4, 2024
3 of 4 checks passed
@predic8 predic8 deleted the shadowing-strategy-stream branch September 4, 2024 14:12
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.

Traffic Shadowing: Redirect calls to a second evironment
2 participants