Lines Matching refs:env

42     def _class_scope(self, env, httpd, nghttpx):  argument
43 env.make_data_file(indir=httpd.docs_dir, fname="data-10k", fsize=10*1024)
44 if env.have_h3():
48 def _function_scope(self, request, env, httpd): argument
53 def test_17_01_sslinfo_plain(self, env: Env, nghttpx, repeat):
55 curl = CurlClient(env=env)
64 def test_17_02_sslinfo_reconnect(self, env: Env, tls_max):
69 if env.curl_uses_lib('libressl'):
72 if env.curl_uses_lib('rustls-ffi'):
74 if env.curl_uses_lib('bearssl') and tls_max == '1.3':
76 if env.curl_uses_lib('mbedtls') and tls_max == '1.3' and \
77 not env.curl_lib_version_at_least('mbedtls', '3.6.0'):
82 curl = CurlClient(env=env, run_env=run_env)
105 def test_17_03_trailing_dot(self, env: Env, proto):
106 if proto == 'h3' and not env.have_h3():
108 curl = CurlClient(env=env)
116 assert r.json['SSL_TLS_SNI'] == env.domain1, f'{r.json}'
120 def test_17_04_double_dot(self, env: Env, proto):
121 if proto == 'h3' and not env.have_h3():
123 curl = CurlClient(env=env)
133 assert r.json['SSL_TLS_SNI'] == env.domain1, f'{r.json}'
142 def test_17_05_ip_addr(self, env: Env, proto):
143 if env.curl_uses_lib('bearssl'):
145 if env.curl_uses_lib('mbedtls'):
147 if proto == 'h3' and not env.have_h3():
149 curl = CurlClient(env=env)
161 def test_17_06_localhost(self, env: Env, proto):
162 if proto == 'h3' and not env.have_h3():
164 curl = CurlClient(env=env)
199 …def test_17_07_ssl_ciphers(self, env: Env, httpd, tls_proto, ciphers13, ciphers12, succeed13, succ…
211 curl = CurlClient(env=env)
214 if env.curl_uses_lib('gnutls'):
216 elif env.curl_uses_lib('boringssl'):
219 elif env.curl_uses_lib('schannel'): # not in CI, so untested
222 elif env.curl_uses_lib('bearssl'):
226 elif env.curl_uses_lib('mbedtls') and not env.curl_lib_version_at_least('mbedtls', '3.6.0'):
229 elif env.curl_uses_lib('sectransp'): # not in CI, so untested
251 def test_17_08_cert_status(self, env: Env, proto):
252 if proto == 'h3' and not env.have_h3():
254 if not env.curl_uses_lib('openssl') and \
255 not env.curl_uses_lib('gnutls') and \
256 not env.curl_uses_lib('quictls'):
258 curl = CurlClient(env=env)
275 def test_17_09_ssl_min_max(self, env: Env, httpd, tls_proto, max_ver, min_ver):
283 if env.curl_uses_lib('gnutls'):
287 our_config = os.path.join(env.gen_dir, 'gnutls_config')
292 curl = CurlClient(env=env, run_env=run_env)
295 if env.curl_uses_lib('bearssl'):
297 elif env.curl_uses_lib('sectransp'): # not in CI, so untested
299 elif env.curl_uses_lib('gnutls'):
301 elif env.curl_uses_lib('quiche'):
317 def test_17_10_h3_session_reuse(self, env: Env, httpd, nghttpx):
318 if not env.have_h3():
320 if not env.curl_uses_lib('quictls') and \
321 not env.curl_uses_lib('gnutls') and \
322 not env.curl_uses_lib('wolfssl'):
327 client = LocalClient(name='hx-download', env=env)
347 def test_17_11_wrong_host(self, env: Env, proto):
348 if proto == 'h3' and not env.have_h3():
350 curl = CurlClient(env=env)
358 def test_17_12_insecure(self, env: Env, proto):
359 if proto == 'h3' and not env.have_h3():
361 curl = CurlClient(env=env)