Home
last modified time | relevance | path

Searched refs:Env (Results 1 – 25 of 32) sorted by relevance

12

/curl/tests/http/
H A Dtest_10_proxy.py33 from testenv import Env, CurlClient, ExecResult
62 def test_10_01_proxy_http(self, env: Env, httpd, repeat): argument
70 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
73 def test_10_02_proxys_down(self, env: Env, httpd, proto, repeat): argument
92 @pytest.mark.skipif(condition=not Env.have_nghttpx(),
94 def test_10_02_proxys_up(self, env: Env, httpd, nghttpx, proto, argument
113 def test_10_03_proxytunnel_http(self, env: Env, httpd, repeat): argument
122 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
136 def test_10_05_proxytunnel_http(self, env: Env, httpd, proto, repeat): argument
146 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
[all …]
H A Dtest_06_eyeballs.py30 from testenv import Env, CurlClient
46 @pytest.mark.skipif(condition=not Env.have_h3(), reason="missing HTTP/3 support")
47 def test_06_01_h3_only(self, env: Env, httpd, nghttpx, repeat): argument
55 @pytest.mark.skipif(condition=not Env.have_h3(), reason="missing HTTP/3 support")
56 def test_06_02_h3_only(self, env: Env, httpd, nghttpx, repeat): argument
64 @pytest.mark.skipif(condition=not Env.have_h3(), reason="missing HTTP/3 support")
65 def test_06_03_h3_fallback_h2(self, env: Env, httpd, nghttpx, repeat): argument
75 def test_06_04_h3_fallback_h1(self, env: Env, httpd, nghttpx, repeat): argument
84 def test_06_10_stats_success(self, env: Env, httpd, nghttpx, repeat): argument
93 def test_06_11_stats_fail_verify(self, env: Env, httpd, nghttpx, repeat): argument
[all …]
H A Dtest_01_basic.py30 from testenv import Env
45 def test_01_01_http_get(self, env: Env, httpd): argument
54 def test_01_02_https_get(self, env: Env, httpd): argument
63 def test_01_03_h2_get(self, env: Env, httpd): argument
72 def test_01_04_h2_unsupported(self, env: Env, httpd): argument
80 @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
81 def test_01_05_h3_get(self, env: Env, httpd, nghttpx): argument
91 def test_01_06_timings(self, env: Env, httpd, nghttpx, repeat, proto): argument
106 def test_01_07_head(self, env: Env, httpd, nghttpx, repeat, proto): argument
121 def test_01_08_h2_upgrade(self, env: Env, httpd): argument
[all …]
H A Dtest_13_proxy_auth.py31 from testenv import Env, CurlClient, ExecResult
37 @pytest.mark.skipif(condition=Env.setup_incomplete(),
61 def test_13_01_proxy_no_auth(self, env: Env, httpd, repeat): argument
69 def test_13_02_proxy_auth(self, env: Env, httpd, repeat): argument
78 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
89 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
92 def test_13_04_proxys_auth(self, env: Env, httpd, nghttpx_fwd, repeat): argument
101 def test_13_05_tunnel_http_no_auth(self, env: Env, httpd, repeat): argument
110 def test_13_06_tunnel_http_auth(self, env: Env, httpd, repeat): argument
120 @pytest.mark.skipif(condition=not Env.curl_has_feature('HTTPS-proxy'),
[all …]
H A Dtest_12_reuse.py32 from testenv import Env, CurlClient
38 @pytest.mark.skipif(condition=not Env.have_ssl_curl(), reason="curl without SSL")
43 def test_12_01_h1_conn_close(self, env: Env, argument
60 @pytest.mark.skipif(condition=Env.httpd_is_at_least('2.5.0'),
63 def test_12_02_h1_conn_timeout(self, env: Env, argument
80 @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
81 def test_12_03_alt_svc_h2h3(self, env: Env, httpd, nghttpx): argument
103 def test_12_04_alt_svc_h3h2(self, env: Env, httpd, nghttpx): argument
125 def test_12_05_alt_svc_h3h1(self, env: Env, httpd, nghttpx): argument
H A Dtest_02_download.py36 from testenv import Env, CurlClient, LocalClient
82 def test_02_03_download_sequential(self, env: Env, argument
94 def test_02_04_download_parallel(self, env: Env, argument
150 def test_02_07_download_reuse(self, env: Env, argument
169 def test_02_07b_download_reuse(self, env: Env, argument
183 def test_02_08_1MB_serial(self, env: Env, argument
194 def test_02_09_1MB_parallel(self, env: Env, argument
209 def test_02_10_10MB_serial(self, env: Env, argument
222 def test_02_11_10MB_parallel(self, env: Env, argument
237 def test_02_12_head_serial_https(self, env: Env, argument
[all …]
H A Dtest_08_caddy.py34 from testenv import Env, CurlClient, Caddy, LocalClient
40 @pytest.mark.skipif(condition=not Env.has_caddy(), reason="missing caddy")
41 @pytest.mark.skipif(condition=not Env.have_ssl_curl(), reason="curl without SSL")
72 def test_08_01_download_1(self, env: Env, caddy: Caddy, repeat, proto): argument
84 def test_08_02_download_1mb_sequential(self, env: Env, caddy: Caddy, argument
98 def test_08_03_download_1mb_parallel(self, env: Env, caddy: Caddy, argument
121 def test_08_04a_download_10mb_sequential(self, env: Env, caddy: Caddy, argument
137 def test_08_04b_download_10mb_sequential(self, env: Env, caddy: Caddy, argument
153 def test_08_05_download_1mb_parallel(self, env: Env, caddy: Caddy, argument
196 def test_08_07_put_large(self, env: Env, httpd, caddy, repeat, proto): argument
[all …]
H A Dtest_11_unix.py35 from testenv import Env, CurlClient
94 def uds_faker(self, env: Env) -> Generator[UDSFaker, None, None]: argument
102 def test_11_01_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): argument
112 @pytest.mark.skipif(condition=not Env.have_ssl_curl(), reason="curl without SSL")
113 def test_11_02_unix_connect_http(self, env: Env, httpd, uds_faker, repeat): argument
123 @pytest.mark.skipif(condition=not Env.have_h3(), reason='h3 not supported')
124 def test_11_03_unix_connect_quic(self, env: Env, httpd, uds_faker, repeat): argument
H A Dtest_20_websockets.py35 from testenv import Env, CurlClient, LocalClient
41 @pytest.mark.skipif(condition=not Env.curl_has_protocol('ws'),
81 def test_20_01_basic(self, env: Env, ws_echo, repeat): argument
87 def test_20_02_pingpong_small(self, env: Env, ws_echo, repeat): argument
97 def test_20_03_pingpong_too_large(self, env: Env, ws_echo, repeat): argument
107 def test_20_04_data_small(self, env: Env, ws_echo, repeat): argument
116 def test_20_05_data_med(self, env: Env, ws_echo, repeat): argument
125 def test_20_06_data_large(self, env: Env, ws_echo, repeat): argument
134 def test_20_07_data_large_small_recv(self, env: Env, ws_echo, repeat): argument
H A Dtest_15_tracing.py30 from testenv import Env
40 def test_15_01_trace_defaults(self, env: Env, httpd): argument
51 def test_15_02_trace_ids(self, env: Env, httpd): argument
64 def test_15_03_trace_ids_time(self, env: Env, httpd): argument
77 def test_15_04_trace_all(self, env: Env, httpd): argument
96 def test_15_05_trace_all(self, env: Env, httpd): argument
H A Dtest_19_shutdown.py31 from testenv import Env, CurlClient, LocalClient
54 @pytest.mark.skipif(condition=not Env.tcpdump(), reason="tcpdump not available")
56 def test_19_01_check_tcp_rst(self, env: Env, httpd, repeat, proto): argument
69 @pytest.mark.skipif(condition=not Env.tcpdump(), reason="tcpdump not available")
71 def test_19_02_check_shutdown(self, env: Env, httpd, repeat, proto): argument
88 def test_19_03_shutdown_by_server(self, env: Env, httpd, repeat, proto): argument
107 def test_19_04_shutdown_by_curl(self, env: Env, httpd, proto, repeat): argument
130 def test_19_05_event_shutdown_by_server(self, env: Env, httpd, proto, repeat): argument
158 def test_19_06_check_shutdown(self, env: Env, httpd, nghttpx, repeat, proto): argument
H A Dtest_14_auth.py31 from testenv import Env, CurlClient
49 def test_14_01_digest_get_noauth(self, env: Env, httpd, nghttpx, repeat, proto): argument
59 def test_14_02_digest_get_auth(self, env: Env, httpd, nghttpx, repeat, proto): argument
71 def test_14_03_digest_put_auth(self, env: Env, httpd, nghttpx, repeat, proto): argument
84 def test_14_04_digest_large_pw(self, env: Env, httpd, nghttpx, repeat, proto): argument
101 def test_14_05_basic_large_pw(self, env: Env, httpd, nghttpx, repeat, proto): argument
121 def test_14_06_basic_very_large_pw(self, env: Env, httpd, nghttpx, repeat, proto): argument
H A Dtest_04_stuttered.py31 from testenv import Env, CurlClient
37 @pytest.mark.skipif(condition=Env().slow_network, reason="not suitable for slow network tests")
38 @pytest.mark.skipif(condition=Env().ci_run, reason="not suitable for CI runs")
50 def test_04_01_download_1(self, env: Env, httpd, nghttpx, repeat, argument
66 def test_04_02_100_100_10(self, env: Env, argument
89 def test_04_03_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto): argument
111 def test_04_04_1000_10_1(self, env: Env, httpd, nghttpx, repeat, proto): argument
H A Dtest_05_errors.py30 from testenv import Env, CurlClient
36 @pytest.mark.skipif(condition=not Env.httpd_is_at_least('2.4.55'),
49 def test_05_01_partial_1(self, env: Env, httpd, nghttpx, repeat, argument
72 def test_05_02_partial_20(self, env: Env, httpd, nghttpx, repeat, argument
95 def test_05_03_required(self, env: Env, httpd, nghttpx, repeat): argument
120 def test_05_04_unclean_tls_shutdown(self, env: Env, httpd, nghttpx, repeat, proto): argument
H A Dtest_07_upload.py35 from testenv import Env, CurlClient, LocalClient
58 def test_07_01_upload_1_small(self, env: Env, httpd, nghttpx, repeat, proto): argument
73 def test_07_02_upload_1_large(self, env: Env, httpd, nghttpx, repeat, proto): argument
180 def test_07_15_hx_put(self, env: Env, httpd, nghttpx, proto): argument
196 def test_07_16_hx_put_reuse(self, env: Env, httpd, nghttpx, proto): argument
212 def test_07_17_hx_post_reuse(self, env: Env, httpd, nghttpx, proto): argument
282 def test_07_30_put_100k(self, env: Env, httpd, nghttpx, repeat, proto): argument
302 def test_07_31_put_10m(self, env: Env, httpd, nghttpx, repeat, proto): argument
336 def test_07_33_issue_11157a(self, env: Env, httpd, nghttpx, repeat): argument
357 def test_07_33_issue_11157b(self, env: Env, httpd, nghttpx, repeat): argument
[all …]
H A Dtest_30_vsftpd.py34 from testenv import Env, CurlClient, VsFTPD
40 @pytest.mark.skipif(condition=not Env.has_vsftpd(), reason="missing vsftpd")
74 def test_30_01_list_dir(self, env: Env, vsftpd: VsFTPD, repeat): argument
86 def test_30_02_download_1(self, env: Env, vsftpd: VsFTPD, docname, repeat): argument
124 def test_30_05_upload_1(self, env: Env, vsftpd: VsFTPD, docname, repeat): argument
140 @pytest.mark.skipif(condition=not Env.tcpdump(), reason="tcpdump not available")
141 def test_30_06_shutdownh_download(self, env: Env, vsftpd: VsFTPD, repeat): argument
152 @pytest.mark.skipif(condition=not Env.tcpdump(), reason="tcpdump not available")
153 def test_30_07_shutdownh_upload(self, env: Env, vsftpd: VsFTPD, repeat): argument
166 def test_30_08_active_download(self, env: Env, vsftpd: VsFTPD): argument
[all …]
H A Dtest_31_vsftpds.py34 from testenv import Env, CurlClient, VsFTPD
40 @pytest.mark.skipif(condition=not Env.has_vsftpd(), reason="missing vsftpd")
81 def test_31_01_list_dir(self, env: Env, vsftpds: VsFTPD, repeat): argument
93 def test_31_02_download_1(self, env: Env, vsftpds: VsFTPD, docname, repeat): argument
131 def test_31_05_upload_1(self, env: Env, vsftpds: VsFTPD, docname, repeat): argument
148 def test_31_06_shutdownh_download(self, env: Env, vsftpds: VsFTPD, repeat): argument
161 def test_31_07_shutdownh_upload(self, env: Env, vsftpds: VsFTPD, repeat): argument
175 def test_31_08_upload_ascii(self, env: Env, vsftpds: VsFTPD): argument
197 def test_31_08_active_download(self, env: Env, vsftpds: VsFTPD): argument
209 def test_31_09_active_upload(self, env: Env, vsftpds: VsFTPD): argument
[all …]
H A Dtest_17_ssl_use.py33 from testenv import Env, CurlClient, LocalClient
53 def test_17_01_sslinfo_plain(self, env: Env, nghttpx, repeat): argument
64 def test_17_02_sslinfo_reconnect(self, env: Env, tls_max): argument
105 def test_17_03_trailing_dot(self, env: Env, proto): argument
120 def test_17_04_double_dot(self, env: Env, proto): argument
142 def test_17_05_ip_addr(self, env: Env, proto): argument
161 def test_17_06_localhost(self, env: Env, proto): argument
251 def test_17_08_cert_status(self, env: Env, proto): argument
317 def test_17_10_h3_session_reuse(self, env: Env, httpd, nghttpx): argument
347 def test_17_11_wrong_host(self, env: Env, proto): argument
[all …]
H A Dtest_03_goaway.py33 from testenv import Env, CurlClient, ExecResult
49 def test_03_01_h2_goaway(self, env: Env, httpd, nghttpx, repeat): argument
80 @pytest.mark.skipif(condition=not Env.have_h3(), reason="h3 not supported")
81 def test_03_02_h3_goaway(self, env: Env, httpd, nghttpx, repeat): argument
115 def test_03_03_h1_goaway(self, env: Env, httpd, nghttpx, repeat): argument
H A Dtest_18_methods.py30 from testenv import Env, CurlClient
51 def test_18_01_delete(self, env: Env, httpd, nghttpx, repeat, proto): argument
64 def test_18_02_delete_h2_special(self, env: Env, httpd, nghttpx, repeat): argument
H A Dconftest.py35 from testenv import Env, Nghttpx, Httpd, NghttpxQuic, NghttpxFwd
39 env = Env()
76 def env(pytestconfig) -> Env:
77 env = Env(pytestconfig=pytestconfig)
H A Dtest_09_push.py31 from testenv import Env, CurlClient, LocalClient
64 def test_09_01_h2_early_hints(self, env: Env, httpd, repeat): argument
75 def test_09_02_h2_push(self, env: Env, httpd, repeat): argument
H A Dtest_16_info.py31 from testenv import Env, CurlClient
55 def test_16_01_info_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
70 def test_16_02_info_302_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
86 def test_16_03_info_upload(self, env: Env, httpd, nghttpx, proto, repeat): argument
107 def test_16_04_info_http_download(self, env: Env, httpd, nghttpx, repeat, proto): argument
/curl/tests/http/testenv/
H A Denv.py290 class Env: class
308 return Env.CONFIG.nghttpx_with_h3
312 return Env.curl_has_feature('ssl') or Env.curl_has_feature('multissl')
328 if Env.have_h3_curl():
329 return not Env.curl_uses_lib('ngtcp2') and Env.curl_uses_lib('nghttp3')
382 return Env.CONFIG.curl_is_debug
386 return Env.have_h3_curl() and Env.have_h3_server()
390 return Env.CONFIG.httpd_version
398 return Env.CONFIG.caddy_version
418 return Env.CONFIG.vsftpd_version
[all …]
H A D__init__.py31 from .env import Env

Completed in 77 milliseconds

12