diff options
author | Stefan Eissing <icing@apache.org> | 2021-12-15 17:39:38 +0100 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-12-15 17:39:38 +0100 |
commit | 928f80ea4c3873ccd568c9047ae3742245d948c2 (patch) | |
tree | 401e55290095695db267fb4a9ba415e2f1f5cdaf /test/pyhttpd/env.py | |
parent | Add maintainer-mode for the OpenSSL 3.x -Werror build so we get actual warnin... (diff) | |
download | apache2-928f80ea4c3873ccd568c9047ae3742245d948c2.tar.xz apache2-928f80ea4c3873ccd568c9047ae3742245d948c2.zip |
*) test: added first mod_proxy tests in test/modules/proxy that
check some variations on forward, reverse and mixed vhosts
and also using a unix: domain socket backend.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1896002 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/pyhttpd/env.py')
-rw-r--r-- | test/pyhttpd/env.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pyhttpd/env.py b/test/pyhttpd/env.py index 97d2272097..fb87272c26 100644 --- a/test/pyhttpd/env.py +++ b/test/pyhttpd/env.py @@ -570,7 +570,7 @@ class HttpdTestEnv: if not isinstance(urls, list): urls = [urls] u = urlparse(urls[0]) - assert u.hostname, f"hostname not in url: {urls[0]}" + #assert u.hostname, f"hostname not in url: {urls[0]}" headerfile = f"{self.gen_dir}/curl.headers.{self._curl_headerfiles_n}" self._curl_headerfiles_n += 1 @@ -583,12 +583,12 @@ class HttpdTestEnv: args.append('--insecure') elif options and "--cacert" in options: pass - else: + elif u.hostname: ca_pem = self.get_ca_pem_file(u.hostname) if ca_pem: args.extend(["--cacert", ca_pem]) - if force_resolve and u.hostname != 'localhost' \ + if force_resolve and u.hostname and u.hostname != 'localhost' \ and u.hostname != self._httpd_addr \ and not re.match(r'^(\d+|\[|:).*', u.hostname): assert u.port, f"port not in url: {urls[0]}" |