Add the Context company lookup emulator - #31
Merged
Merged
Conversation
Executor's cloud onboarding e2e provisions a "context" service for company lookup, but no such emulator existed, so the hosted control plane answered 404 unknown emulator service. Adds packages/@emulators/context with brand/retrieve by work email address or domain over seeded brands, rejecting free and disposable mailbox domains the way the real resolver does. Registers it in the Cloudflare hosts worker and the CLI registry, and covers the hosted provisioning path with a worker test.
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.
Executor's cloud onboarding e2e provisions a
contextservice for company lookup, but no such emulator ever existed in this repo. The hosted control plane answered404 unknown emulator service: contexton the credentials call.Adds
packages/@emulators/context:POST /v1/brand/retrieveby work email address or domain, over seeded brands.partial: trueanswers 200 with the flag set, for the caller's retry path.Registers it in the Cloudflare hosts worker and the CLI registry, and covers the hosted provisioning path with a worker test. Appended to the CLI service list last so every existing service keeps its default port.
Verified live after deploying
emulate-hosts: executor-next'se2e/create-emulators.tsnow provisions all five services, and the seeded company resolves.