summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipatests/test_xmlrpc/test_attr.py6
-rw-r--r--ipatests/test_xmlrpc/test_permission_plugin.py12
2 files changed, 17 insertions, 1 deletions
diff --git a/ipatests/test_xmlrpc/test_attr.py b/ipatests/test_xmlrpc/test_attr.py
index d4671b984..70e3d326c 100644
--- a/ipatests/test_xmlrpc/test_attr.py
+++ b/ipatests/test_xmlrpc/test_attr.py
@@ -279,6 +279,12 @@ class test_attr(Declarative):
),
dict(
+ desc='Try to "remove" empty location from %r' % user1,
+ command=('user_mod', [user1], dict(l=None)),
+ expected=errors.EmptyModlist(),
+ ),
+
+ dict(
desc='Lock %r using setattr' % user1,
command=(
'user_mod', [user1], dict(setattr=u'nsaccountlock=TrUe')
diff --git a/ipatests/test_xmlrpc/test_permission_plugin.py b/ipatests/test_xmlrpc/test_permission_plugin.py
index 4903bfae3..6aa00f9f7 100644
--- a/ipatests/test_xmlrpc/test_permission_plugin.py
+++ b/ipatests/test_xmlrpc/test_permission_plugin.py
@@ -271,6 +271,16 @@ class test_permission_negative(Declarative):
),
dict(
+ desc='Try to "remove" empty memberof from %r' % permission1,
+ command=(
+ 'permission_mod', [permission1], dict(
+ memberof=None,
+ )
+ ),
+ expected=errors.EmptyModlist(),
+ ),
+
+ dict(
desc='Try to remove targetfilter and memberof from %r' % permission1,
command=(
'permission_mod', [permission1], dict(
@@ -285,7 +295,7 @@ class test_permission_negative(Declarative):
),
dict(
- desc='Try to rename %r to invalid invalid %r' % (
+ desc='Try to rename %r to invalid %r' % (
permission1, invalid_permission1),
command=('permission_mod', [permission1], dict(
rename=invalid_permission1,