mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Re-initialize NSS database after otptoken plugin tests
OTP token tests do not properly reinitialize the NSS db, thus making subsequent xmlrpc tests fail on SSL cert validation. Make sure NSS db is re-initalized in the teardown method. https://fedorahosted.org/freeipa/ticket/4748 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
b3a6701e73
commit
792ff0c0c4
@@ -21,12 +21,17 @@ import os
|
||||
import sys
|
||||
import nose
|
||||
from nss import nss
|
||||
from ipalib.x509 import initialize_nss_database
|
||||
|
||||
from ipaserver.install.ipa_otptoken_import import PSKCDocument, ValidationError
|
||||
|
||||
basename = os.path.join(os.path.dirname(__file__), "data")
|
||||
|
||||
class test_otptoken_import(object):
|
||||
|
||||
def teardown(self):
|
||||
initialize_nss_database()
|
||||
|
||||
def test_figure3(self):
|
||||
doc = PSKCDocument(os.path.join(basename, "pskc-figure3.xml"))
|
||||
assert doc.keyname is None
|
||||
|
||||
Reference in New Issue
Block a user