URL: https://github.com/freeipa/freeipa/pull/2005
Author: kaleemsiddiqu
 Title: #2005: Test coverage for multiservers for radius proxy
Action: opened

PR body:
"""
Test checks that no multiservers can be added for
radius proxy

Pagure: https://pagure.io/freeipa/issue/7542
"""

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/2005/head:pr2005
git checkout pr2005
From 52fb3bee3159645f0b375e06fe1f9cfce6291904 Mon Sep 17 00:00:00 2001
From: Kaleemullah Siddiqui <ksiddiqu@localhost.localdomain>
Date: Fri, 8 Jun 2018 17:15:44 +0530
Subject: [PATCH] Test coverage for multiservers for radius proxy

Test checks that no multiservers can be added for
radius proxy

Pagure: https://pagure.io/freeipa/issue/7542
---
 ipatests/test_xmlrpc/test_radiusproxy_plugin.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/ipatests/test_xmlrpc/test_radiusproxy_plugin.py b/ipatests/test_xmlrpc/test_radiusproxy_plugin.py
index a078eca8f2..5f79e55ca5 100644
--- a/ipatests/test_xmlrpc/test_radiusproxy_plugin.py
+++ b/ipatests/test_xmlrpc/test_radiusproxy_plugin.py
@@ -72,6 +72,19 @@ class test_raduisproxy(Declarative):
         ),
 
 
+        dict(
+            desc='Try to add multiple radius proxy server %r' % radius1,
+            command=('radiusproxy_add', [radius1],
+                dict(
+                    ipatokenradiusserver=[radius1_fqdn, radius1_fqdn],
+                    ipatokenradiussecret=password1,
+                ),
+            ),
+            expected=errors.ConversionError(
+                name='ipatokenradiusserver', error=_('Only one value is allowed')),
+        ),
+
+
         dict(
             desc='Create %r' % radius1,
             command=('radiusproxy_add', [radius1],
_______________________________________________
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/KV5QN3IHFBWS5S5ZNOR5R6BPQD3JCO5Y/

Reply via email to