summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_group_plugin.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-10-27 12:07:53 -0400
committerRob Crittenden <rcritten@redhat.com>2010-10-28 17:47:20 -0400
commit3c795f3251bd0354d56e2b50042ee04cee7cd21f (patch)
tree2b52ddf89754c8375290343cdc51563c147346fd /tests/test_xmlrpc/test_group_plugin.py
parent7486ead6c910d13ae4d7cbae6fae738ce2bf47eb (diff)
downloadfreeipa-3c795f3251bd0354d56e2b50042ee04cee7cd21f.tar.gz
freeipa-3c795f3251bd0354d56e2b50042ee04cee7cd21f.tar.xz
freeipa-3c795f3251bd0354d56e2b50042ee04cee7cd21f.zip
Return reason for failure when updating group membership fails.
We used to return a list of dns that failed to be added. We now return a list of tuples instead. The tuple looks like (dn, reason) where reason is the exception that was returned. Also made the label we use for failures to be singular instead of plural since we now print them out individually instead of as comma-separated. ticket 270
Diffstat (limited to 'tests/test_xmlrpc/test_group_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_group_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_xmlrpc/test_group_plugin.py b/tests/test_xmlrpc/test_group_plugin.py
index 6218ebe59..10d3f6748 100644
--- a/tests/test_xmlrpc/test_group_plugin.py
+++ b/tests/test_xmlrpc/test_group_plugin.py
@@ -403,7 +403,7 @@ class test_group(Declarative):
completed=0,
failed=dict(
member=dict(
- group=(u'notfound',),
+ group=[(u'notfound', u'no such entry')],
user=tuple(),
),
),
@@ -449,7 +449,7 @@ class test_group(Declarative):
completed=0,
failed=dict(
member=dict(
- group=(u'notfound',),
+ group=[(u'notfound', u'This entry is not a member of the group')],
user=tuple(),
),
),