summaryrefslogtreecommitdiff
path: root/test/pyhttpd
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2021-12-15 16:39:38 +0000
committerStefan Eissing <icing@apache.org>2021-12-15 16:39:38 +0000
commit928f80ea4c3873ccd568c9047ae3742245d948c2 (patch)
tree401e55290095695db267fb4a9ba415e2f1f5cdaf /test/pyhttpd
parentf3eb277904e712d4c1ef2dc8cdf401906ca2712a (diff)
downloadhttpd-928f80ea4c3873ccd568c9047ae3742245d948c2.tar.gz
*) 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')
-rw-r--r--test/pyhttpd/env.py6
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]}"