summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_host_plugin.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-07-27 11:02:00 +0200
committerRob Crittenden <rcritten@redhat.com>2011-07-27 20:56:16 -0400
commit18aa73e06e30939b6b8d0a2c6def41fb6bd4eef8 (patch)
tree4c91ca036611daf98218e8f93c867493dcdc6c69 /tests/test_xmlrpc/test_host_plugin.py
parent1b09ca53a211316e4e6541bafad68df594b8f2b3 (diff)
downloadfreeipa-18aa73e06e30939b6b8d0a2c6def41fb6bd4eef8.tar.gz
freeipa-18aa73e06e30939b6b8d0a2c6def41fb6bd4eef8.tar.xz
freeipa-18aa73e06e30939b6b8d0a2c6def41fb6bd4eef8.zip
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
Diffstat (limited to 'tests/test_xmlrpc/test_host_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_host_plugin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py
index 793729629..426b0d7ca 100644
--- a/tests/test_xmlrpc/test_host_plugin.py
+++ b/tests/test_xmlrpc/test_host_plugin.py
@@ -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,
),
),
),