Test for ipa-replica-install fails with PIN error for CA-less env.

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
Reviewed-By: Aleksei Slaikovskii <aslaikov@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
Anuja More 2018-06-04 14:09:16 +05:30 committed by Tibor Dudlák
parent f1d5ab3a03
commit 4f4835a724
No known key found for this signature in database
GPG Key ID: 12B8BD343576CDF5

View File

@ -1181,6 +1181,41 @@ class TestReplicaInstall(CALessBase):
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/replica', filename='http.p12',
password='')
self.create_pkcs12('ca1/replica', filename='dirsrv.p12',
password='')
self.prepare_cacert('ca1')
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()
@replica_install_teardown
def test_certs_with_no_password_interactive(self):
# related to https://pagure.io/freeipa/issue/7274
self.create_pkcs12('ca1/replica', filename='http.p12',
password='')
self.create_pkcs12('ca1/replica', filename='dirsrv.p12',
password='')
self.prepare_cacert('ca1')
stdin_text = '\n\nyes'
result = self.prepare_replica(http_pkcs12='http.p12',
dirsrv_pkcs12='dirsrv.p12',
http_pin=None, dirsrv_pin=None,
unattended=False, stdin_text=stdin_text)
assert result.returncode == 0
if self.domain_level > DOMAIN_LEVEL_0:
self.verify_installation()
class TestClientInstall(CALessBase):
num_clients = 1