Fix invalid issuer in unit tests

Fix several test failures when issuer does not match the one
generated by make-testcert (CN=Certificate Authority,O=<realm>).

https://fedorahosted.org/freeipa/ticket/1527
This commit is contained in:
Martin Kosek authored and Rob Crittenden committed 2011-07-27 20:56:16 -04:00
1 parent 1b09ca53a2
commit 18aa73e06e
4 files changed
+14 -8

No files matched your search

+3 -3
View File
@@ -24,7 +24,7 @@ Test the `ipalib.plugins.host` module.
from ipalib import api, errors, x509
from tests.test_xmlrpc.xmlrpc_test import Declarative, fuzzy_uuid, fuzzy_digits
from tests.test_xmlrpc.xmlrpc_test import fuzzy_hash, fuzzy_date
from tests.test_xmlrpc.xmlrpc_test import fuzzy_hash, fuzzy_date, fuzzy_issuer
from tests.test_xmlrpc import objectclasses
import base64
@@ -239,7 +239,7 @@ class test_host(Declarative):
serial_number=fuzzy_digits,
md5_fingerprint=fuzzy_hash,
sha1_fingerprint=fuzzy_hash,
issuer=u'CN=%s Certificate Authority' % api.env.realm,
issuer=fuzzy_issuer,
),
),
),
@@ -266,7 +266,7 @@ class test_host(Declarative):
serial_number=fuzzy_digits,
md5_fingerprint=fuzzy_hash,
sha1_fingerprint=fuzzy_hash,
issuer=u'CN=%s Certificate Authority' % api.env.realm,
issuer=fuzzy_issuer,
),
),
),