MCPcopy Create free account
hub / github.com/apache/httpd / ProxyTestEnv

Class ProxyTestEnv

test/modules/proxy/env.py:22–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class ProxyTestEnv(HttpdTestEnv):
23
24 def __init__(self, pytestconfig=None):
25 super().__init__(pytestconfig=pytestconfig)
26 self.add_httpd_conf([
27 ])
28 self._d_reverse = f"reverse.{self.http_tld}"
29 self._d_forward = f"forward.{self.http_tld}"
30 self._d_mixed = f"mixed.{self.http_tld}"
31
32 self.add_httpd_log_modules(["proxy", "proxy_http", "proxy_balancer", "lbmethod_byrequests", "ssl"])
33 self.add_cert_specs([
34 CertificateSpec(domains=[
35 self._d_forward, self._d_reverse, self._d_mixed
36 ]),
37 CertificateSpec(domains=[f"noh2.{self.http_tld}"], key_type='rsa2048'),
38 ])
39
40 def setup_httpd(self, setup: HttpdTestSetup = None):
41 super().setup_httpd(setup=ProxyTestSetup(env=self))
42
43 @property
44 def d_forward(self):
45 return self._d_forward
46
47 @property
48 def d_reverse(self):
49 return self._d_reverse
50
51 @property
52 def d_mixed(self):
53 return self._d_mixed

Callers 2

pytest_report_headerFunction · 0.85
envFunction · 0.85

Calls

no outgoing calls

Tested by 2

pytest_report_headerFunction · 0.68
envFunction · 0.68