summaryrefslogtreecommitdiffstats
path: root/ipatests/test_xmlrpc/test_config_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipatests/test_xmlrpc/test_config_plugin.py')
-rw-r--r--ipatests/test_xmlrpc/test_config_plugin.py30
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,
+ ),
+ ),
+
]