summaryrefslogtreecommitdiffstats
path: root/test/test.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2015-10-02 11:10:43 -0400
committerRob Crittenden <rcritten@redhat.com>2015-10-02 16:51:57 -0400
commit242f32c7f567dcd2ee35f46c07c9ecf2adf954f6 (patch)
tree13e3a3e300d067d4ef5f93df1c58109a177a98b6 /test/test.py
parent769a67377725efc1e7c33b6f53b485c7970f883a (diff)
downloadmod_nss-242f32c7f567dcd2ee35f46c07c9ecf2adf954f6.tar.gz
mod_nss-242f32c7f567dcd2ee35f46c07c9ecf2adf954f6.tar.xz
mod_nss-242f32c7f567dcd2ee35f46c07c9ecf2adf954f6.zip
Add a test for reverse proxy SNI
Diffstat (limited to 'test/test.py')
-rw-r--r--test/test.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/test.py b/test/test.py
index 721d210..c471fdb 100644
--- a/test/test.py
+++ b/test/test.py
@@ -20,7 +20,9 @@ class test_suite1(Declarative):
def setUpClass(cls):
write_template_file('suite1.tmpl', 'work/httpd/conf/test.conf',
{'DBPREFIX': os.environ.get('DBPREFIX', ''),
- 'SNI': 'off'}
+ 'SNI': 'off',
+ 'PRESERVEHOST': 'Off',
+ }
)
# Generate a single VH to do negative SNI testing
write_template_file('sni.tmpl', 'work/httpd/conf.d/sni1.conf',
@@ -260,7 +262,7 @@ class test_suite1(Declarative):
),
dict(
- desc='Make non-SNI request',
+ desc='SNI request when SNI is disabled',
request=('/index.html',
{'host': 'www1.example.com', 'port': 8000}
),
@@ -268,4 +270,10 @@ class test_suite1(Declarative):
expected_str='doesn\'t match',
),
+ dict(
+ desc='Reverse proxy request when SNI is disabled',
+ request=('/proxy/index.html', {}),
+ expected=400,
+ ),
+
]