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

[PSC-1988] Enable spot mock to have a 404 fallback proxy #2066

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

timdawborn
Copy link
Contributor

@timdawborn timdawborn commented Oct 4, 2023

Description, Motivation and Context

In order to make the mock server more useful in the case where you have multiple different upstream servers on the same hostname, this PR adds a new optional fallback proxy to spot mock, which is used instead of instantly 404'ing the received request if the request does not match any of the given contracts. If provided, instead of 404'ing, it will send the request through to the fallback proxy.

@timdawborn timdawborn marked this pull request as ready for review October 4, 2023 11:38
@timdawborn timdawborn requested a review from a team as a code owner October 4, 2023 11:38
@timdawborn timdawborn requested review from njday and flavray and removed request for a team October 4, 2023 11:38
Copy link

@njday njday left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@timdawborn timdawborn merged commit d132f81 into master Oct 5, 2023
3 checks passed
@timdawborn timdawborn deleted the PSC-1988-spot-mock-support-undefined-route-proxy branch October 5, 2023 03:01
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.

None yet

3 participants