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

>From 70152750668f1210ebfde655d2de0cec91f5d45f Mon Sep 17 00:00:00 2001
From: Martin Kosek <[email protected]>
Date: Wed, 27 Jul 2011 11:02:00 +0200
Subject: [PATCH] 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
---
 tests/test_xmlrpc/test_host_plugin.py    |    4 ++--
 tests/test_xmlrpc/test_service_plugin.py |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_xmlrpc/test_host_plugin.py b/tests/test_xmlrpc/test_host_plugin.py
index 793729629eda71a3800b87b9068378207492f426..7c8557518bf65476dba41f8252cf5f7512a1553a 100644
--- a/tests/test_xmlrpc/test_host_plugin.py
+++ b/tests/test_xmlrpc/test_host_plugin.py
@@ -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=u'CN=Certificate Authority,O=%s' % api.env.realm,
                 ),
             ),
         ),
@@ -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=u'CN=Certificate Authority,O=%s' % api.env.realm,
                 ),
             ),
         ),
diff --git a/tests/test_xmlrpc/test_service_plugin.py b/tests/test_xmlrpc/test_service_plugin.py
index be58b3511290d6cdc80c2bca5367c7e374700dc3..107d587985b827a85e55aec6a335af1cdaac7006 100644
--- a/tests/test_xmlrpc/test_service_plugin.py
+++ b/tests/test_xmlrpc/test_service_plugin.py
@@ -375,7 +375,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=u'CN=Certificate Authority,O=%s' % api.env.realm,
                 ),
             ),
         ),
@@ -401,7 +401,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=u'CN=Certificate Authority,O=%s' % api.env.realm,
                 ),
             ),
         ),
-- 
1.7.6

_______________________________________________
Freeipa-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to