URL: https://github.com/freeipa/freeipa/pull/1419
Author: Rezney
 Title: #1419: test_cert_plugin: check if SAN is added with default profile
Action: opened

PR body:
"""
This test case addresses upstream case #7007.

https://pagure.io/freeipa/issue/7334
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/1419/head:pr1419
git checkout pr1419
From f89e5ec81b338f843992b9f043ca244f0046abc2 Mon Sep 17 00:00:00 2001
From: Michal Reznik <mrez...@redhat.com>
Date: Wed, 20 Dec 2017 16:05:37 +0100
Subject: [PATCH] test_cert_plugin: check if SAN is added with default profile

This test case addresses upstream case #7007.

https://pagure.io/freeipa/issue/7334
---
 ipatests/test_xmlrpc/test_cert_plugin.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/ipatests/test_xmlrpc/test_cert_plugin.py b/ipatests/test_xmlrpc/test_cert_plugin.py
index 73f595f27e..dd14116195 100644
--- a/ipatests/test_xmlrpc/test_cert_plugin.py
+++ b/ipatests/test_xmlrpc/test_cert_plugin.py
@@ -224,7 +224,16 @@ def test_0009_cert_find(self):
         assert 'valid_not_before' in res
         assert 'valid_not_after' in res
 
-    def test_00010_cleanup(self):
+    def test_00010_san_in_cert(self):
+        """
+        Test if SAN extension is automatically added with default profile.
+        """
+        csr = self.generateCSR(str(self.subject))
+        res = api.Command[
+            'cert_request'](csr, principal=self.service_princ)['result']
+        assert 'san_dnsname' in res
+
+    def test_00011_cleanup(self):
         """
         Clean up cert test data
         """
@@ -235,7 +244,7 @@ def test_00010_cleanup(self):
         res = api.Command['service_find'](self.service_princ)
         assert res['count'] == 0
 
-    def test_00011_emails_are_valid(self):
+    def test_00012_emails_are_valid(self):
         """
         Verify the different scenarios when checking if any email addr
         from DN or SAN extension does not appear in ldap entry.
_______________________________________________
FreeIPA-devel mailing list -- freeipa-devel@lists.fedorahosted.org
To unsubscribe send an email to freeipa-devel-le...@lists.fedorahosted.org

Reply via email to