Add emulator handler for SetBackendService - #224
Open
Rafał Mielowski (Mielek) wants to merge 2 commits into
Open
Add emulator handler for SetBackendService#224Rafał Mielowski (Mielek) wants to merge 2 commits into
Rafał Mielowski (Mielek) wants to merge 2 commits into
Conversation
Rafał Mielowski (Mielek)
requested review from
Maciej Treder (maciejtreder) and
Tom Kerkhove (tomkerkhove)
as code owners
February 26, 2026 15:53
- Implement SetBackendServiceHandler with base-url and backend-id modes - base-url mode: parses URL and sets Api.ServiceUrl - backend-id mode: resolves from BackendStore, throws BadRuntimeConfigurationException if not found - Add BackendStore for registering mock backends via SetupBackendStore() - Add Backend record (Id, Url) - Add BadRuntimeConfigurationException for configuration errors - Add SetBackendServiceTests with 7 test cases - Sections: Inbound, Backend, Outbound, OnError Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rafał Mielowski (Mielek)
force-pushed
the
emulator/set-backend-service
branch
from
February 26, 2026 16:01
bf93a5d to
b519449
Compare
Maciej Treder (maciejtreder)
approved these changes
Feb 27, 2026
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.
Summary
Implement SetBackendServiceHandler with base-url and backend-id support matching gateway behavior.
Gateway behavior
Api.ServiceUrl) by parsing the provided URLcontext.Variables["backendId"]for test assertionsChanges
169 tests pass, 0 regressions.