diff options
author | Rob Crittenden <rcritten@redhat.com> | 2016-02-10 09:40:19 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2016-02-29 16:09:17 -0500 |
commit | 69a6b5dbb026f1bc35ae3aeeeacc9cef92da2851 (patch) | |
tree | 05234b02cd5f9071e58706715bb0a6f4123420e3 | |
parent | 8271c8b782b9db7ee6d2367db71a390681663d67 (diff) | |
download | mod_nss-69a6b5dbb026f1bc35ae3aeeeacc9cef92da2851.tar.gz mod_nss-69a6b5dbb026f1bc35ae3aeeeacc9cef92da2851.tar.xz mod_nss-69a6b5dbb026f1bc35ae3aeeeacc9cef92da2851.zip |
Basic test case for DHE cipher negotiation
-rwxr-xr-x | test/createinstance.sh | 1 | ||||
-rw-r--r-- | test/suite1.tmpl | 4 | ||||
-rw-r--r-- | test/test.py | 11 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/createinstance.sh b/test/createinstance.sh index e32c628..0538090 100755 --- a/test/createinstance.sh +++ b/test/createinstance.sh @@ -11,6 +11,7 @@ function create_content_dirs { mkdir $dir/rc4_cipher mkdir $dir/openssl_rc4_cipher mkdir $dir/openssl_aes_cipher + mkdir $dir/dhe_cipher mkdir $dir/acl mkdir $dir/protocolssl2 mkdir $dir/protocolssl3 diff --git a/test/suite1.tmpl b/test/suite1.tmpl index 38ea2b0..2c09a89 100644 --- a/test/suite1.tmpl +++ b/test/suite1.tmpl @@ -51,6 +51,10 @@ CoreDumpDirectory $SERVER_ROOT NSSCipherSuite AES+RSA </Location> + <Location "/dhe_cipher"> + NSSCipherSuite +dhe_rsa_aes_128_sha + </Location> + <Location "/acl/aclS01.html"> NSSOptions +StdEnvVars +CompatEnvVars +ExportCertData NSSVerifyClient require diff --git a/test/test.py b/test/test.py index fadc5d0..866e388 100644 --- a/test/test.py +++ b/test/test.py @@ -1,5 +1,6 @@ from test_config import Declarative, write_template_file, restart_apache from test_config import stop_apache +from variable import ENABLE_SERVER_DHE import ssl import requests.exceptions import os @@ -292,3 +293,13 @@ class test_suite1(Declarative): ), ] + + if ENABLE_SERVER_DHE: + tests.append( + dict( + desc='server-side DHE cipher check', + request=('/dhe_cipher/', {'ciphers': 'ALL'}), + expected=200, + cipher='DHE-RSA-AES128-SHA', + ) + ) |