URL: https://github.com/freeipa/freeipa/pull/5231
Author: mrizwan93
 Title: #5231: ipatests: Test certmonger IPA responder switched to JSONRPC
Action: opened

PR body:
"""
This is to test if certmonger IPA responder swithed to JSONRPC
from XMLRPC

related: https://pagure.io/freeipa/issue/3299

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

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/5231/head:pr5231
git checkout pr5231
From 979901d8e5d2d20aa50c30ba583ee3b61c394ae2 Mon Sep 17 00:00:00 2001
From: Mohammad Rizwan <myu...@redhat.com>
Date: Fri, 6 Nov 2020 16:44:38 +0530
Subject: [PATCH] ipatests: Test certmonger IPA responder switched to JSONRPC

This is to test if certmonger IPA responder swithed to JSONRPC
from XMLRPC

related: https://pagure.io/freeipa/issue/3299

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

diff --git a/ipatests/test_integration/test_cert.py b/ipatests/test_integration/test_cert.py
index 2ac32a72f33..307c94198a7 100644
--- a/ipatests/test_integration/test_cert.py
+++ b/ipatests/test_integration/test_cert.py
@@ -92,6 +92,22 @@ def test_cacert_file_appear_with_option_F(self):
 
         self.clients[0].run_command(['ls', '-l', '/etc/pki/tls/test.CA'])
 
+    def test_certmonger_ipa_responder_jsonrpc(self):
+        """Test certmonger IPA responder switched to JSONRPC
+
+        This is to test if certmonger IPA responder swithed to JSONRPC
+        from XMLRPC
+
+        related: https://pagure.io/freeipa/issue/3299
+        """
+        # check that request is made against /ipa/json so that
+        # IPA enforce json data type
+        exp_str = 'Submitting request to "https://{}/ipa/json";'.format(
+                self.master.hostname
+        )
+        result = self.master.run_command(['journalctl', '-u', 'certmonger'])
+        assert exp_str in result.stdout_text
+
     def test_ipa_getcert_san_aci(self):
         """Test for DNS and IP SAN extensions + ACIs
         """
_______________________________________________
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://docs.fedoraproject.org/en-US/project/code-of-conduct/
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