Lines Matching refs:env

44     def _class_scope(self, env, httpd, nghttpx):  argument
45 if env.have_h3():
47 env.make_data_file(indir=env.gen_dir, fname="data-10k", fsize=10*1024)
48 env.make_data_file(indir=env.gen_dir, fname="data-63k", fsize=63*1024)
49 env.make_data_file(indir=env.gen_dir, fname="data-64k", fsize=64*1024)
50 env.make_data_file(indir=env.gen_dir, fname="data-100k", fsize=100*1024)
51 env.make_data_file(indir=env.gen_dir, fname="data-1m+", fsize=(1024*1024)+1)
52 env.make_data_file(indir=env.gen_dir, fname="data-10m", fsize=10*1024*1024)
58 def test_07_01_upload_1_small(self, env: Env, httpd, nghttpx, repeat, proto):
59 if proto == 'h3' and not env.have_h3():
61 if proto == 'h3' and env.curl_uses_lib('msh3'):
64 curl = CurlClient(env=env)
73 def test_07_02_upload_1_large(self, env: Env, httpd, nghttpx, repeat, proto):
74 if proto == 'h3' and not env.have_h3():
76 if proto == 'h3' and env.curl_uses_lib('msh3'):
78 fdata = os.path.join(env.gen_dir, 'data-100k')
79 curl = CurlClient(env=env)
89 def test_07_10_upload_sequential(self, env: Env, httpd, nghttpx, repeat, proto):
90 if proto == 'h3' and not env.have_h3():
92 if proto == 'h3' and env.curl_uses_lib('msh3'):
96 curl = CurlClient(env=env)
106 def test_07_11_upload_parallel(self, env: Env, httpd, nghttpx, repeat, proto):
107 if proto == 'h3' and not env.have_h3():
109 if proto == 'h3' and env.curl_uses_lib('msh3'):
114 curl = CurlClient(env=env)
125 def test_07_12_upload_seq_large(self, env: Env, httpd, nghttpx, repeat, proto):
126 if proto == 'h3' and not env.have_h3():
128 if proto == 'h3' and env.curl_uses_lib('msh3'):
130 fdata = os.path.join(env.gen_dir, 'data-100k')
132 curl = CurlClient(env=env)
144 def test_07_13_upload_seq_large(self, env: Env, httpd, nghttpx, repeat, proto):
145 if proto == 'h3' and not env.have_h3():
147 if proto == 'h3' and env.curl_uses_lib('msh3'):
149 fdata = os.path.join(env.gen_dir, 'data-10m')
151 curl = CurlClient(env=env)
165 def test_07_14_upload_stdin(self, env: Env, httpd, nghttpx, proto, indata):
166 if proto == 'h3' and not env.have_h3():
168 if proto == 'h3' and env.curl_uses_lib('msh3'):
171 curl = CurlClient(env=env)
180 def test_07_15_hx_put(self, env: Env, httpd, nghttpx, proto):
181 if proto == 'h3' and not env.have_h3():
186 client = LocalClient(name='hx-upload', env=env)
196 def test_07_16_hx_put_reuse(self, env: Env, httpd, nghttpx, proto):
197 if proto == 'h3' and not env.have_h3():
202 client = LocalClient(name='hx-upload', env=env)
212 def test_07_17_hx_post_reuse(self, env: Env, httpd, nghttpx, proto):
213 if proto == 'h3' and not env.have_h3():
218 client = LocalClient(name='hx-upload', env=env)
229 def test_07_20_upload_parallel(self, env: Env, httpd, nghttpx, repeat, proto):
230 if proto == 'h3' and not env.have_h3():
232 if proto == 'h3' and env.curl_uses_lib('msh3'):
237 curl = CurlClient(env=env)
248 def test_07_21_upload_parallel_large(self, env: Env, httpd, nghttpx, repeat, proto):
249 if proto == 'h3' and not env.have_h3():
251 if proto == 'h3' and env.curl_uses_lib('msh3'):
253 fdata = os.path.join(env.gen_dir, 'data-100k')
256 curl = CurlClient(env=env)
265 def test_07_22_upload_parallel_fail(self, env: Env, httpd, nghttpx, repeat, proto):
266 if proto == 'h3' and not env.have_h3():
268 if proto == 'h3' and env.curl_uses_lib('msh3'):
270 fdata = os.path.join(env.gen_dir, 'data-10m')
272 curl = CurlClient(env=env)
282 def test_07_30_put_100k(self, env: Env, httpd, nghttpx, repeat, proto):
283 if proto == 'h3' and not env.have_h3():
285 if proto == 'h3' and env.curl_uses_lib('msh3'):
287 fdata = os.path.join(env.gen_dir, 'data-100k')
289 curl = CurlClient(env=env)
302 def test_07_31_put_10m(self, env: Env, httpd, nghttpx, repeat, proto):
303 if proto == 'h3' and not env.have_h3():
305 if proto == 'h3' and env.curl_uses_lib('msh3'):
307 fdata = os.path.join(env.gen_dir, 'data-10m')
309 curl = CurlClient(env=env)
322 def test_07_32_issue_10591(self, env: Env, httpd, nghttpx, repeat, proto):
323 if proto == 'h3' and not env.have_h3():
325 if proto == 'h3' and env.curl_uses_lib('msh3'):
327 fdata = os.path.join(env.gen_dir, 'data-10m')
329 curl = CurlClient(env=env)
336 def test_07_33_issue_11157a(self, env: Env, httpd, nghttpx, repeat):
338 fdata = os.path.join(env.gen_dir, 'data-10m')
341 curl = CurlClient(env=env)
344 '--cacert', env.ca.cert_file,
357 def test_07_33_issue_11157b(self, env: Env, httpd, nghttpx, repeat):
359 fdata = os.path.join(env.gen_dir, 'data-10m')
363 curl = CurlClient(env=env)
367 '--cacert', env.ca.cert_file,
379 def test_07_34_issue_11194(self, env: Env, httpd, nghttpx, repeat):
383 fdata = os.path.join(env.gen_dir, 'data-100k')
385 curl = CurlClient(env=env)
389 '--cacert', env.ca.cert_file,
399 def test_07_35_h1_h2_upgrade_upload(self, env: Env, httpd, nghttpx, repeat):
400 fdata = os.path.join(env.gen_dir, 'data-100k')
401 curl = CurlClient(env=env)
416 def test_07_36_upload_30x(self, env: Env, httpd, nghttpx, repeat, redir, proto):
417 if proto == 'h3' and not env.have_h3():
419 if proto == 'h3' and env.curl_uses_lib('msh3'):
422 curl = CurlClient(env=env)
433 def test_07_37_upload_307(self, env: Env, httpd, nghttpx, repeat, proto):
434 if proto == 'h3' and not env.have_h3():
436 if proto == 'h3' and env.curl_uses_lib('msh3'):
439 curl = CurlClient(env=env)
450 def test_07_38_form_small(self, env: Env, httpd, nghttpx, repeat, proto):
451 if proto == 'h3' and not env.have_h3():
453 if proto == 'h3' and env.curl_uses_lib('msh3'):
455 curl = CurlClient(env=env)
464 def test_07_39_post_urlenc_small(self, env: Env, httpd, nghttpx, repeat, proto):
465 if proto == 'h3' and not env.have_h3():
467 if proto == 'h3' and env.curl_uses_lib('msh3'):
469 fdata = os.path.join(env.gen_dir, 'data-63k')
470 curl = CurlClient(env=env)
482 def test_07_40_post_urlenc_large(self, env: Env, httpd, nghttpx, repeat, proto):
483 if proto == 'h3' and not env.have_h3():
485 if proto == 'h3' and env.curl_uses_lib('msh3'):
487 fdata = os.path.join(env.gen_dir, 'data-64k')
488 curl = CurlClient(env=env)
504 def test_07_41_post_urlenc_small(self, env: Env, httpd, nghttpx, repeat, proto):
505 if proto == 'h3' and not env.have_h3():
507 if proto == 'h3' and env.curl_uses_lib('msh3'):
509 if proto == 'h3' and env.curl_uses_lib('quiche'):
511 fdata = os.path.join(env.gen_dir, 'data-63k')
512 curl = CurlClient(env=env)
539 def test_07_42a_upload_disconnect(self, env: Env, httpd, nghttpx, repeat, proto):
540 if proto == 'h3' and not env.have_h3():
542 if proto == 'h3' and env.curl_uses_lib('msh3'):
544 client = LocalClient(name='upload-pausing', env=env, timeout=60)
560 def test_07_42b_upload_disconnect(self, env: Env, httpd, nghttpx, repeat, proto):
561 if proto == 'h3' and not env.have_h3():
563 if proto == 'h3' and env.curl_uses_lib('msh3'):
565 client = LocalClient(name='upload-pausing', env=env, timeout=60)
577 def test_07_42c_upload_disconnect(self, env: Env, httpd, nghttpx, repeat, proto):
578 if proto == 'h3' and not env.have_h3():
580 if proto == 'h3' and env.curl_uses_lib('msh3'):
582 client = LocalClient(name='upload-pausing', env=env, timeout=60)
593 def test_07_43_upload_denied(self, env: Env, httpd, nghttpx, repeat, proto):
594 if proto == 'h3' and not env.have_h3():
596 if proto == 'h3' and env.curl_uses_lib('msh3'):
598 fdata = os.path.join(env.gen_dir, 'data-10m')
601 curl = CurlClient(env=env)
610 def test_07_50_put_speed_limit(self, env: Env, httpd, nghttpx, proto, repeat):
611 if proto == 'h3' and not env.have_h3():
614 fdata = os.path.join(env.gen_dir, 'data-100k')
617 curl = CurlClient(env=env)
630 def test_07_51_echo_speed_limit(self, env: Env, httpd, nghttpx, proto, repeat):
631 if proto == 'h3' and not env.have_h3():
634 fdata = os.path.join(env.gen_dir, 'data-100k')
636 curl = CurlClient(env=env)
648 def test_07_60_upload_exp100(self, env: Env, httpd, nghttpx, repeat, proto):
649 fdata = os.path.join(env.gen_dir, 'data-1m+')
651 curl = CurlClient(env=env)
661 def test_07_61_upload_exp100_timeout(self, env: Env, httpd, nghttpx, repeat, proto):
662 fdata = os.path.join(env.gen_dir, 'data-1m+')
664 curl = CurlClient(env=env)
683 def test_07_70_put_earlydata(self, env: Env, httpd, nghttpx, proto, upload_size, exp_early):
684 if not env.curl_uses_lib('gnutls'):
686 if proto == 'h3' and not env.have_h3():
691 port = env.port_for(proto)
693 port = env.nghttpx_https_port
695 client = LocalClient(name='hx-upload', env=env)