mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
test(integration): isolate the http.server child interpreter in the JWKS pause cell (LIT-8429)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
93939f2a53
commit
f53a005254
1 changed files with 11 additions and 1 deletions
|
|
@ -235,7 +235,17 @@ def test_signer_jwks_pause_rejects_then_recovers(gateway: Gateway, tmp_path: Pat
|
|||
)
|
||||
token: Final = jwt.encode(_claims(), private_key, algorithm="RS256", headers={"kid": "rsa"})
|
||||
server: Final = subprocess.Popen(
|
||||
[sys.executable, "-m", "http.server", str(port), "--bind", "127.0.0.1", "--directory", str(tmp_path / "jwks")],
|
||||
[
|
||||
sys.executable,
|
||||
"-I",
|
||||
"-m",
|
||||
"http.server",
|
||||
str(port),
|
||||
"--bind",
|
||||
"127.0.0.1",
|
||||
"--directory",
|
||||
str(tmp_path / "jwks"),
|
||||
],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue