Lines Matching full:env
1 #!/usr/bin/env python3
34 from testenv import Env, CurlClient, LocalClient
43 def _class_scope(self, env, httpd, nghttpx): argument
44 if env.have_h3():
46 env.make_data_file(indir=env.gen_dir, fname="data-63k", fsize=63*1024)
47 env.make_data_file(indir=env.gen_dir, fname="data-64k", fsize=64*1024)
48 env.make_data_file(indir=env.gen_dir, fname="data-100k", fsize=100*1024)
49 env.make_data_file(indir=env.gen_dir, fname="data-1m+", fsize=(1024*1024)+1)
50 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
56 def test_07_01_upload_1_small(self, env: Env, httpd, nghttpx, repeat, proto): argument
57 if proto == 'h3' and not env.have_h3():
59 if proto == 'h3' and env.curl_uses_lib('msh3'):
62 curl = CurlClient(env=env)
63 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
71 def test_07_02_upload_1_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
72 if proto == 'h3' and not env.have_h3():
74 if proto == 'h3' and env.curl_uses_lib('msh3'):
76 fdata = os.path.join(env.gen_dir, 'data-100k')
77 curl = CurlClient(env=env)
78 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
87 def test_07_10_upload_sequential(self, env: Env, httpd, nghttpx, repeat, proto): argument
88 if proto == 'h3' and not env.have_h3():
90 if proto == 'h3' and env.curl_uses_lib('msh3'):
94 curl = CurlClient(env=env)
95 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
104 def test_07_11_upload_parallel(self, env: Env, httpd, nghttpx, repeat, proto): argument
105 if proto == 'h3' and not env.have_h3():
107 if proto == 'h3' and env.curl_uses_lib('msh3'):
112 curl = CurlClient(env=env)
113 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
123 def test_07_12_upload_seq_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
124 if proto == 'h3' and not env.have_h3():
126 if proto == 'h3' and env.curl_uses_lib('msh3'):
128 fdata = os.path.join(env.gen_dir, 'data-100k')
130 curl = CurlClient(env=env)
131 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
142 def test_07_13_upload_seq_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
143 if proto == 'h3' and not env.have_h3():
145 if proto == 'h3' and env.curl_uses_lib('msh3'):
147 fdata = os.path.join(env.gen_dir, 'data-10m')
149 curl = CurlClient(env=env)
150 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
160 def test_07_20_upload_parallel(self, env: Env, httpd, nghttpx, repeat, proto): argument
161 if proto == 'h3' and not env.have_h3():
163 if proto == 'h3' and env.curl_uses_lib('msh3'):
168 curl = CurlClient(env=env)
169 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
179 def test_07_21_upload_parallel_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
180 if proto == 'h3' and not env.have_h3():
182 if proto == 'h3' and env.curl_uses_lib('msh3'):
184 fdata = os.path.join(env.gen_dir, 'data-100k')
187 curl = CurlClient(env=env)
188 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-{count-1}]'
196 def test_07_22_upload_parallel_fail(self, env: Env, httpd, nghttpx, repeat, proto): argument
197 if proto == 'h3' and not env.have_h3():
199 if proto == 'h3' and env.curl_uses_lib('msh3'):
201 fdata = os.path.join(env.gen_dir, 'data-10m')
203 curl = CurlClient(env=env)
204 url = f'https://{env.authority_for(env.domain1, proto)}'\
213 def test_07_30_put_100k(self, env: Env, httpd, nghttpx, repeat, proto): argument
214 if proto == 'h3' and not env.have_h3():
216 if proto == 'h3' and env.curl_uses_lib('msh3'):
218 fdata = os.path.join(env.gen_dir, 'data-100k')
220 curl = CurlClient(env=env)
221 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-{count-1}]'
233 def test_07_31_put_10m(self, env: Env, httpd, nghttpx, repeat, proto): argument
234 if proto == 'h3' and not env.have_h3():
236 if proto == 'h3' and env.curl_uses_lib('msh3'):
238 fdata = os.path.join(env.gen_dir, 'data-10m')
240 curl = CurlClient(env=env)
241 …url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-{count-1}]&chunk_delay=…
253 def test_07_32_issue_10591(self, env: Env, httpd, nghttpx, repeat, proto): argument
254 if proto == 'h3' and not env.have_h3():
256 if proto == 'h3' and env.curl_uses_lib('msh3'):
258 fdata = os.path.join(env.gen_dir, 'data-10m')
260 curl = CurlClient(env=env)
261 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-{count-1}]'
267 def test_07_33_issue_11157a(self, env: Env, httpd, nghttpx, repeat): argument
269 fdata = os.path.join(env.gen_dir, 'data-10m')
271 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put'
272 curl = CurlClient(env=env)
274 '--resolve', f'{env.authority_for(env.domain1, proto)}:127.0.0.1',
275 '--cacert', env.ca.cert_file,
288 def test_07_33_issue_11157b(self, env: Env, httpd, nghttpx, repeat): argument
290 fdata = os.path.join(env.gen_dir, 'data-10m')
293 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?chunk_delay=2ms'
294 curl = CurlClient(env=env)
297 '--resolve', f'{env.authority_for(env.domain1, proto)}:127.0.0.1',
298 '--cacert', env.ca.cert_file,
310 def test_07_34_issue_11194(self, env: Env, httpd, nghttpx, repeat): argument
314 fdata = os.path.join(env.gen_dir, 'data-100k')
315 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put'
316 curl = CurlClient(env=env)
319 '--resolve', f'{env.authority_for(env.domain1, proto)}:127.0.0.1',
320 '--cacert', env.ca.cert_file,
330 def test_07_35_h1_h2_upgrade_upload(self, env: Env, httpd, nghttpx, repeat): argument
331 fdata = os.path.join(env.gen_dir, 'data-100k')
332 curl = CurlClient(env=env)
333 url = f'http://{env.domain1}:{env.http_port}/curltest/echo?id=[0-0]'
347 def test_07_36_upload_30x(self, env: Env, httpd, nghttpx, repeat, redir, proto): argument
348 if proto == 'h3' and not env.have_h3():
350 if proto == 'h3' and env.curl_uses_lib('msh3'):
353 curl = CurlClient(env=env)
354 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo{redir}?id=[0-0]'
364 def test_07_37_upload_307(self, env: Env, httpd, nghttpx, repeat, proto): argument
365 if proto == 'h3' and not env.have_h3():
367 if proto == 'h3' and env.curl_uses_lib('msh3'):
370 curl = CurlClient(env=env)
371 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo307?id=[0-0]'
381 def test_07_38_form_small(self, env: Env, httpd, nghttpx, repeat, proto): argument
382 if proto == 'h3' and not env.have_h3():
384 if proto == 'h3' and env.curl_uses_lib('msh3'):
386 curl = CurlClient(env=env)
387 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
395 def test_07_39_post_urlenc_small(self, env: Env, httpd, nghttpx, repeat, proto): argument
396 if proto == 'h3' and not env.have_h3():
398 if proto == 'h3' and env.curl_uses_lib('msh3'):
400 fdata = os.path.join(env.gen_dir, 'data-63k')
401 curl = CurlClient(env=env)
402 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
413 def test_07_40_post_urlenc_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
414 if proto == 'h3' and not env.have_h3():
416 if proto == 'h3' and env.curl_uses_lib('msh3'):
418 fdata = os.path.join(env.gen_dir, 'data-64k')
419 curl = CurlClient(env=env)
420 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
435 def test_07_41_post_urlenc_small(self, env: Env, httpd, nghttpx, repeat, proto): argument
436 if proto == 'h3' and not env.have_h3():
438 if proto == 'h3' and env.curl_uses_lib('msh3'):
440 if proto == 'h3' and env.curl_uses_lib('quiche'):
442 fdata = os.path.join(env.gen_dir, 'data-63k')
443 curl = CurlClient(env=env)
448 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
470 def test_07_42_upload_disconnect(self, env: Env, httpd, nghttpx, repeat, proto): argument
471 if proto == 'h3' and not env.have_h3():
473 if proto == 'h3' and env.curl_uses_lib('msh3'):
475 client = LocalClient(name='upload-pausing', env=env, timeout=60)
478 url = f'http://{env.domain1}:{env.http_port}/curltest/echo?id=[0-0]&die_after=10'
484 def test_07_50_put_speed_limit(self, env: Env, httpd, nghttpx, proto, repeat): argument
485 if proto == 'h3' and not env.have_h3():
488 fdata = os.path.join(env.gen_dir, 'data-100k')
491 curl = CurlClient(env=env)
492 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-0]'
504 def test_07_51_echo_speed_limit(self, env: Env, httpd, nghttpx, proto, repeat): argument
505 if proto == 'h3' and not env.have_h3():
508 fdata = os.path.join(env.gen_dir, 'data-100k')
510 curl = CurlClient(env=env)
511 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/echo?id=[0-0]'
522 def test_07_60_upload_exp100(self, env: Env, httpd, nghttpx, repeat, proto): argument
523 fdata = os.path.join(env.gen_dir, 'data-1m+')
525 curl = CurlClient(env=env)
526 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-0]'\
535 def test_07_61_upload_exp100_timeout(self, env: Env, httpd, nghttpx, repeat, proto): argument
536 fdata = os.path.join(env.gen_dir, 'data-1m+')
538 curl = CurlClient(env=env)
539 url = f'https://{env.authority_for(env.domain1, proto)}/curltest/put?id=[0-0]'\