From 6c7a59a906ca46d1fbdf38739ac8b33f3136de9e Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 23 Sep 2013 15:02:07 +0200 Subject: Add tests for user auth type management https://fedorahosted.org/freeipa/ticket/3368 --- ipatests/test_xmlrpc/test_config_plugin.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'ipatests/test_xmlrpc/test_config_plugin.py') diff --git a/ipatests/test_xmlrpc/test_config_plugin.py b/ipatests/test_xmlrpc/test_config_plugin.py index 3d9a31daf..56baf7f0b 100644 --- a/ipatests/test_xmlrpc/test_config_plugin.py +++ b/ipatests/test_xmlrpc/test_config_plugin.py @@ -118,4 +118,34 @@ class test_config(Declarative): error='SELinux user map default user not in order list'), ), + dict( + desc='Set user auth type', + command=('config_mod', [], dict(ipauserauthtype=u'password')), + expected=dict( + result=lambda d: d['ipauserauthtype'] == (u'password',), + value=u'', + summary=None, + ), + ), + + dict( + desc='Check user auth type', + command=('config_show', [], {}), + expected=dict( + result=lambda d: d['ipauserauthtype'] == (u'password',), + value=u'', + summary=None, + ), + ), + + dict( + desc='Unset user auth type', + command=('config_mod', [], dict(ipauserauthtype=None)), + expected=dict( + result=lambda d: 'ipauserauthtype' not in d, + value=u'', + summary=None, + ), + ), + ] -- cgit