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

Method install_test_conf

test/pyhttpd/env.py:591–612  ·  view source on GitHub ↗
(self, lines: List[str])

Source from the content-addressed store, hash-verified

589 return f"{scheme}://{hostname}.{self.http_tld}:{port}{path}"
590
591 def install_test_conf(self, lines: List[str]):
592 self.apache_stop()
593 with open(self._test_conf, 'w') as fd:
594 fd.write('\n'.join(self._httpd_base_conf))
595 fd.write('\n')
596 fd.write(f"CoreDumpDirectory {self._server_dir}\n")
597 fd.write('\n')
598 if self._verbosity >= 3:
599 fd.write(f"LogLevel trace7 ssl:trace6\n")
600 fd.write(f"DumpIoOutput on\n")
601 fd.write(f"DumpIoInput on\n")
602 elif self._verbosity >= 2:
603 fd.write(f"LogLevel debug core:trace5 {self.mpm_module}:trace5 ssl:trace5 http:trace5\n")
604 elif self._verbosity >= 1:
605 fd.write(f"LogLevel info\n")
606 else:
607 fd.write(f"LogLevel warn\n")
608 if self._log_interesting:
609 fd.write(self._log_interesting)
610 fd.write('\n\n')
611 fd.write('\n'.join(lines))
612 fd.write('\n')
613
614 def is_live(self, url: str = None, timeout: timedelta = None):
615 if url is None:

Callers 1

installMethod · 0.80

Calls 2

apache_stopMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected