diff options
Diffstat (limited to 'test/testsni.py')
-rw-r--r-- | test/testsni.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/testsni.py b/test/testsni.py index 9808f91..b5203cb 100644 --- a/test/testsni.py +++ b/test/testsni.py @@ -9,7 +9,9 @@ class test_suite1(Declarative): def setUpClass(cls): write_template_file('suite1.tmpl', 'work/httpd/conf/test.conf', {'DBPREFIX': os.environ.get('DBPREFIX', ''), - 'SNI': 'on'} + 'SNI': 'on', + 'PRESERVEHOST': 'Off', + } ) for i in range(1,26): write_template_file('sni.tmpl', 'work/httpd/conf.d/sni%d.conf' % i, @@ -98,4 +100,10 @@ class test_suite1(Declarative): expected=requests.exceptions.ConnectionError(), ), + dict( + desc='Reverse proxy request when SNI is enabled', + request=('/proxy/index.html', {'sni': True}), + expected=200, + ), + ] |