URL: https://github.com/freeipa/freeipa/pull/1991
Author: amore17
 Title: #1991: Test for ipa-replica-install fails with PIN error for CA-less 
env.
Action: opened

PR body:
"""
related to : https://pagure.io/freeipa/issue/7274
when the keys are not protected by a PIN
ipa-replica-install fails with PIN error

Signed-off-by: Anuja More <am...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1991/head:pr1991
git checkout pr1991
From d8c910e996bc5b55e35f40b6066a2b4fad8570e2 Mon Sep 17 00:00:00 2001
From: Anuja More <am...@redhat.com>
Date: Mon, 4 Jun 2018 14:09:16 +0530
Subject: [PATCH] Test for ipa-replica-install fails with PIN error for CA-less
 env.

Signed-off-by: Anuja More <am...@redhat.com>
---
 ipatests/test_integration/test_caless.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py
index 1666b1ce41..97f97afb6b 100644
--- a/ipatests/test_integration/test_caless.py
+++ b/ipatests/test_integration/test_caless.py
@@ -1181,6 +1181,20 @@ def test_no_ds_password(self):
         if self.domain_level > DOMAIN_LEVEL_0:
             self.verify_installation()
 
+    @replica_install_teardown
+    def test_certs_with_no_password(self):
+        # related to https://pagure.io/freeipa/issue/7274
+
+        self.create_pkcs12('ca1/server', filename='http.p12', password='')
+        self.create_pkcs12('ca1/server', filename='dirsrv.p12', password='')
+        self.prepare_cacert('ca1')
+
+        result = self.prepare_replica(http_pkcs12='http.p12',
+                                      dirsrv_pkcs12='dirsrv.p12',
+                                      http_pin='', dirsrv_pin='')
+        if self.domain_level > DOMAIN_LEVEL_0:
+            self.verify_installation()
+
 
 class TestClientInstall(CALessBase):
     num_clients = 1
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/freeipa-devel@lists.fedorahosted.org/message/6WI23NEXRW73PVZ5LPZLVWZGEYY7IM4T/

Reply via email to