diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-09-23 15:02:07 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2013-11-08 12:48:43 +0100 |
commit | 6c7a59a906ca46d1fbdf38739ac8b33f3136de9e (patch) | |
tree | 6f27e10e0b6fbd654ba27ef744757e615b6e2bc5 /ipatests/test_xmlrpc/test_config_plugin.py | |
parent | 3f85f09a83f1cd25078c7c11a68d457bb198d66f (diff) | |
download | freeipa-6c7a59a906ca46d1fbdf38739ac8b33f3136de9e.tar.gz freeipa-6c7a59a906ca46d1fbdf38739ac8b33f3136de9e.tar.xz freeipa-6c7a59a906ca46d1fbdf38739ac8b33f3136de9e.zip |
Add tests for user auth type management
https://fedorahosted.org/freeipa/ticket/3368
Diffstat (limited to 'ipatests/test_xmlrpc/test_config_plugin.py')
-rw-r--r-- | ipatests/test_xmlrpc/test_config_plugin.py | 30 |
1 files changed, 30 insertions, 0 deletions
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, + ), + ), + ] |