summaryrefslogtreecommitdiffstats
path: root/tests/test_xmlrpc/test_sudorule_plugin.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-01-07 11:17:55 -0500
committerRob Crittenden <rcritten@redhat.com>2011-01-10 10:32:10 -0500
commit6f58f38748085e6a104de6f9e992469d3b685d5a (patch)
treeebc3a92f95feae19afc8ababcf306782e62988f8 /tests/test_xmlrpc/test_sudorule_plugin.py
parent0a79836082b897ebf734d9073583769cb276937c (diff)
downloadfreeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.tar.gz
freeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.tar.xz
freeipa-6f58f38748085e6a104de6f9e992469d3b685d5a.zip
Display the entries that failed when deleting with --continue.
We collected the failures but didn't report it back. This changes the API of most delete commands so rather than returning a boolean it returns a dict with the only current key as failed. This also adds a new parameter flag, suppress_empty. This will try to not print values that are empty if included. This makes the output of the delete commands a bit prettier. ticket 687
Diffstat (limited to 'tests/test_xmlrpc/test_sudorule_plugin.py')
-rw-r--r--tests/test_xmlrpc/test_sudorule_plugin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_xmlrpc/test_sudorule_plugin.py b/tests/test_xmlrpc/test_sudorule_plugin.py
index d6c24727e..89f0af3a5 100644
--- a/tests/test_xmlrpc/test_sudorule_plugin.py
+++ b/tests/test_xmlrpc/test_sudorule_plugin.py
@@ -449,7 +449,7 @@ class test_sudorule(XMLRPC_test):
"""
Test deleting a Sudo rule using `xmlrpc.sudorule_del`.
"""
- assert api.Command['sudorule_del'](self.rule_name)['result'] is True
+ api.Command['sudorule_del'](self.rule_name)
# verify that it's gone
try:
api.Command['sudorule_show'](self.rule_name)