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

Method setup_httpd

test/pyhttpd/env.py:322–336  ·  view source on GitHub ↗

Create the server environment with config, htdocs and certificates

(self, setup: HttpdTestSetup = None)

Source from the content-addressed store, hash-verified

320 self._ca.issue_certs(self._cert_specs)
321
322 def setup_httpd(self, setup: HttpdTestSetup = None):
323 """Create the server environment with config, htdocs and certificates"""
324 self._setup = setup if setup is not None else HttpdTestSetup(env=self)
325 self._setup.make()
326 self.issue_certs()
327 if self._httpd_log_modules:
328 if self._verbosity >= 2:
329 log_level = "trace2"
330 elif self._verbosity >= 1:
331 log_level = "debug"
332 else:
333 log_level = "info"
334 self._log_interesting = "LogLevel"
335 for name in self._httpd_log_modules:
336 self._log_interesting += f" {name}:{log_level}"
337
338 def check_error_log(self):
339 errors, warnings = self._error_log.get_missed()

Callers

nothing calls this directly

Calls 3

issue_certsMethod · 0.95
HttpdTestSetupClass · 0.85
makeMethod · 0.45

Tested by

no test coverage detected