pytest: do not use reserved chars in url queries

Closes #17458
This commit is contained in:
Stefan Eissing 2025-05-26 17:07:37 +02:00 committed by Daniel Stenberg
parent dc60a82747
commit a084ad543e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -179,7 +179,7 @@ class TestUpload:
pytest.skip("h3 not supported")
count = 2
upload_size = 128*1024
url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]'
url = f'https://localhost:{env.https_port}/curltest/put'
client = LocalClient(name='hx-upload', env=env)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')
@ -195,7 +195,7 @@ class TestUpload:
pytest.skip("h3 not supported")
count = 2
upload_size = 128*1024
url = f'https://localhost:{env.https_port}/curltest/put?id=[0-{count-1}]'
url = f'https://localhost:{env.https_port}/curltest/put'
client = LocalClient(name='hx-upload', env=env)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')
@ -211,7 +211,7 @@ class TestUpload:
pytest.skip("h3 not supported")
count = 2
upload_size = 128*1024
url = f'https://localhost:{env.https_port}/curltest/echo?id=[0-{count-1}]'
url = f'https://localhost:{env.https_port}/curltest/echo'
client = LocalClient(name='hx-upload', env=env)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')
@ -564,7 +564,7 @@ class TestUpload:
client = LocalClient(name='upload-pausing', env=env, timeout=60)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&just_die=1'
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&just_die=1'
r = client.run(['-V', proto, url])
exp_code = 52 # GOT_NOTHING
if proto == 'h2' or proto == 'h3':
@ -581,7 +581,7 @@ class TestUpload:
client = LocalClient(name='upload-pausing', env=env, timeout=60)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]&die_after_100=1'
url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=0&die_after_100=1'
r = client.run(['-V', proto, url])
exp_code = 52 # GOT_NOTHING
if proto == 'h2' or proto == 'h3':
@ -741,7 +741,7 @@ class TestUpload:
port = env.port_for(proto)
if proto != 'h3':
port = env.nghttpx_https_port
url = f'https://{env.domain1}:{port}/curltest/put?id=[0-{count-1}]'
url = f'https://{env.domain1}:{port}/curltest/put'
client = LocalClient(name='hx-upload', env=env)
if not client.exists():
pytest.skip(f'example client not built: {client.name}')