aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_server.py')
-rw-r--r--test/test_server.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_server.py b/test/test_server.py
index 86588c69..182b969f 100644
--- a/test/test_server.py
+++ b/test/test_server.py
@@ -197,6 +197,13 @@ class TestHTTPSCertfile(tservers.HTTPProxTest, CommonMixin):
def test_certfile(self):
assert self.pathod("304")
+class TestHTTPSNoCommonName(tservers.HTTPProxTest, CommonMixin):
+ """
+ Test what happens if we get a cert without common name back.
+ """
+ ssl = True
+ ssloptions=pathod.SSLOptions(certfile=tutils.test_data.path("data/no_common_name.pem"),
+ keyfile=tutils.test_data.path("data/no_common_name.pem"))
class TestReverse(tservers.ReverseProxTest, CommonMixin):
reverse = True