Skip to content
Snippets Groups Projects
Unverified Commit 542b278a authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Test proxying with a prefix


Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent 7d42b224
No related branches found
No related tags found
1 merge request!46Fix some requests being proxied incorrectly when root prefix is set
......@@ -45,7 +45,22 @@ mock_worker = """
@pytest.mark.asyncio
async def test_five_gigazero_upload(app_testbed, tmp_path):
async def test_getbinaries(app_testbed):
client_base = f"http://127.0.0.1:{app_testbed.client_port}"
async with httpx.AsyncClient(timeout=5 * 60) as client:
resp = await client.get(
f"{client_base}/srcserver/worker:1/getbinaries",
)
assert resp.content == b"1234567890" * 1024
resp = await client.get(
f"{client_base}/repserver/worker:1/getbinaries",
)
assert resp.content == b"1234567890" * 1024
@pytest.mark.asyncio
async def test_five_kilozero_upload(app_testbed, tmp_path):
client_base = f"http://127.0.0.1:{app_testbed.client_port}"
async with httpx.AsyncClient(timeout=5 * 60) as client:
await client.post(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment