URL: https://github.com/freeipa/freeipa/pull/2773
Author: mrizwan93
 Title: #2773: Check if issuer DN is updated after external-ca > self-signed
Action: opened

PR body:
"""
This test checks if issuer DN is updated properly after CA is
renewed back from external-ca to self-signed

related ticket : https://pagure.io/freeipa/issue/7762

Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com>
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2773/head:pr2773
git checkout pr2773
From 01411791e3841ef1964a1bdb3ecc28100451b566 Mon Sep 17 00:00:00 2001
From: Mohammad Rizwan Yusuf <myu...@redhat.com>
Date: Mon, 21 Jan 2019 13:03:04 +0530
Subject: [PATCH] Check if issuer DN is updated after external-ca > self-signed

This test checks if issuer DN is updated properly after CA is
renewed back from external-ca to self-signed

related ticket : https://pagure.io/freeipa/issue/7762

Signed-off-by: Mohammad Rizwan Yusuf <myu...@redhat.com>
---
 ipatests/test_integration/test_external_ca.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/ipatests/test_integration/test_external_ca.py b/ipatests/test_integration/test_external_ca.py
index a8e0ea0bfb..cacd900877 100644
--- a/ipatests/test_integration/test_external_ca.py
+++ b/ipatests/test_integration/test_external_ca.py
@@ -234,6 +234,17 @@ def test_switch_back_to_self_signed(self):
         result = self.master.run_command([paths.IPA_CERTUPDATE])
         assert result.returncode == 0
 
+    def test_issuerDN_after_renew_to_self_signed(self):
+        """ Check if issuer DN is updated after external-ca > self-signed
+
+        This test checks if issuer DN is updated properly after CA is
+        renewed back from external-ca to self-signed
+        """
+        result = self.master.run_command(['ipa', 'ca-show', 'ipa'])
+        issuer_dn = 'CN=Certificate Authority,O={}'.format(
+            self.master.domain.realm)
+        assert 'Issuer DN: {}'.format(issuer_dn) in result.stdout_text
+
 
 class TestExternalCAdirsrvStop(IntegrationTest):
     """When the dirsrv service, which gets started during the first
_______________________________________________
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.fedorahosted.org/archives/list/freeipa-devel@lists.fedorahosted.org

Reply via email to