summaryrefslogtreecommitdiffstats
path: root/test/test.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2016-01-14 23:40:53 -0500
committerRob Crittenden <rcritten@redhat.com>2016-01-15 13:16:15 -0500
commit184804c82daf7fe04dfb0b0ecdc3e06be0c103c1 (patch)
treee4d2cec37e63d464f21e77d64d12cd5c90aab23c /test/test.py
parenta7721ab0c171d587a5d831990d1fe16d37a41ac7 (diff)
downloadmod_nss-184804c82daf7fe04dfb0b0ecdc3e06be0c103c1.tar.gz
mod_nss-184804c82daf7fe04dfb0b0ecdc3e06be0c103c1.tar.xz
mod_nss-184804c82daf7fe04dfb0b0ecdc3e06be0c103c1.zip
Add test for colons in FakeBasicAuth user certificate
Update gencert to do a better job parsing arguments so I can pass in a --test flag to generate a special test-only user certificate to test colons in the DN.
Diffstat (limited to 'test/test.py')
-rw-r--r--test/test.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.py b/test/test.py
index c471fdb..90b969d 100644
--- a/test/test.py
+++ b/test/test.py
@@ -162,6 +162,15 @@ class test_suite1(Declarative):
),
dict(
+ desc='FakeBasicAuth, certificate with colon',
+ request=('/acl/aclS03.html', {
+ 'key_file': 'work/httpd/colon.key',
+ 'cert_file': 'work/httpd/colon.crt',}
+ ),
+ expected=403,
+ ),
+
+ dict(
desc='Secret key size',
request=('/secret-test.html', {}),
expected=200,