fix(extensions): make LOCAL_EXTENSIONS hot reload reliable in Docker (#40084)

Co-authored-by: Amin Ghadersohi <amin.ghadersohi@gmail.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-07-24 15:30:04 -07:00
committed by GitHub
parent 2a07f7967d
commit c65bedf2d7
9 changed files with 287 additions and 21 deletions

View File

@@ -64,6 +64,21 @@ def test_asset_path_is_intercepted() -> None:
assert "Cookie" not in vary
def test_nested_asset_path_is_intercepted() -> None:
headers: ResponseHeaders = call_middleware(
"/api/v1/extensions/acme/my-ext/workers/nested/chunk.wasm",
[("Vary", "Accept-Encoding, Cookie")],
)
vary: str = dict(headers).get("Vary", "")
assert "Cookie" not in vary
def test_get_endpoint_with_trailing_slash_is_not_intercepted() -> None:
upstream: ResponseHeaders = [("Vary", "Accept-Encoding, Cookie")]
headers = call_middleware("/api/v1/extensions/acme/my-ext/", upstream)
assert headers == upstream
def test_list_endpoint_is_not_intercepted() -> None:
upstream = [("Vary", "Accept-Encoding, Cookie")]
headers = call_middleware("/api/v1/extensions/", upstream)