Create the server environment with config, htdocs and certificates
(self, setup: HttpdTestSetup = None)
| 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() |
nothing calls this directly
no test coverage detected