From 0b01751c1bd7c579ab8f7fb64d9182c6f107ab3b Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 14 Mar 2012 11:33:41 -0400 Subject: Use valid argument names in tests Some of our tests used unintended extra options, or options with misspelled, wrongly copy-pasted or otherwise bad names. These are ignored, so the intended argument was treated as missing. The test itself can still pass but may be rendered ineffective or fragile. This only fixes those of such errors that appear in the test suite. Fixing code in the framework and actual rejecting of unknown arguments is deferred for later (ticket #2509). --- tests/test_xmlrpc/test_sudorule_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_xmlrpc/test_sudorule_plugin.py') diff --git a/tests/test_xmlrpc/test_sudorule_plugin.py b/tests/test_xmlrpc/test_sudorule_plugin.py index 2a597c37b..7c45256ec 100644 --- a/tests/test_xmlrpc/test_sudorule_plugin.py +++ b/tests/test_xmlrpc/test_sudorule_plugin.py @@ -97,7 +97,7 @@ class test_sudorule(XMLRPC_test): Test searching for Sudo rules using `xmlrpc.sudorule_find`. """ ret = api.Command['sudorule_find']( - name=self.rule_name, + cn=self.rule_name, description=self.rule_desc_mod ) assert ret['truncated'] is False @@ -131,7 +131,7 @@ class test_sudorule(XMLRPC_test): self.test_sudodenycmdgroup, description=u'desc' ) self.failsafe_add(api.Object.sudocmd, - self.test_command, description=u'desc', force=True + self.test_command, description=u'desc' ) def test_8_sudorule_add_user(self): @@ -592,7 +592,7 @@ class test_sudorule(XMLRPC_test): """ api.Command['sudorule_mod'](self.rule_name, ipasudorunasusercategory=u'all') try: - api.Command['sudorule_add_runasuser'](self.rule_name, sudocmd=self.test_user) + api.Command['sudorule_add_runasuser'](self.rule_name, user=self.test_user) finally: api.Command['sudorule_mod'](self.rule_name, ipasudorunasusercategory=u'') -- cgit