mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 22:37:55 -05:00
* refactor(apigateway): decide execute-api host routing before applying it ApiGatewayExecuteApiHostFilter.decide() returns a RouteDecision for a host and path without touching the request. filter() applies it: account and region of the API owner, the REST or HTTP API rewrite, or the 404 for a disabled endpoint. The lookups for an API with an owner run under the owner's account, and the caller's account and region are restored afterwards. No change in behavior for execute-api requests. * test(apigateway): give the API owner its own region in the restore tests The owner and the caller used the same region, so the tests passed even if underAccountOf() did not restore the caller's region. The owner now uses eu-west-1, and each restore test asserts the caller's region. --------- Co-authored-by: liRONCO11 <7966063+liRONCO11@users.noreply.github.com>