diff options
author | Rob Crittenden <rcritten@redhat.com> | 2014-10-28 17:41:22 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2014-10-28 17:41:22 -0400 |
commit | b5d1505fc81a33aa10d013efd247d00f631fc681 (patch) | |
tree | f840f8450cdd70b5143ad45eab6d87b3ef630492 /test/test.py | |
parent | 0d4c4e31e3f55473569c4e937f432d6f20c9d6be (diff) | |
download | mod_nss-b5d1505fc81a33aa10d013efd247d00f631fc681.tar.gz mod_nss-b5d1505fc81a33aa10d013efd247d00f631fc681.tar.xz mod_nss-b5d1505fc81a33aa10d013efd247d00f631fc681.zip |
Add support for sqlite NSS databases
We do a chdir() to the NSS database location so that libnssckbi.so
is available when the database is opened. Strip off a sql: prefix
if one is available. This allows the new sqlite format to work.
Add an additional test pass configuring NSS using the sqlite format.
This requires a bit of a hack to pass in the value to python but
it will work for now.
Resolves: #1057650
Diffstat (limited to 'test/test.py')
-rw-r--r-- | test/test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.py b/test/test.py index 93e8518..75f3b0c 100644 --- a/test/test.py +++ b/test/test.py @@ -2,11 +2,12 @@ from test_config import Declarative, write_template_file, restart_apache from test_config import stop_apache import ssl import requests.exceptions +import os class test_suite1(Declarative): @classmethod def setUpClass(cls): - write_template_file('suite1.tmpl', 'work/httpd/conf/test.conf', {}) + write_template_file('suite1.tmpl', 'work/httpd/conf/test.conf', {'DBPREFIX': os.environ.get('DBPREFIX', '')}) restart_apache() @classmethod |