mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: test addition of invalid sudo command
Check that sudocmd-add fails when trying to add a command containing a trailing dot. Signed-off-by: Antonio Torres <antorres@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
d6c5a92609
commit
89135830cc
@ -170,6 +170,11 @@ class TestSudo(IntegrationTest):
|
||||
# No group
|
||||
self.master.run_command(['ipa', 'sudocmd-add', '/usr/bin/yum'])
|
||||
|
||||
# Invalid command
|
||||
result = self.master.run_command(
|
||||
['ipa', 'sudocmd-add', '/bin/cat.'], raiseonerr=False)
|
||||
assert result.returncode == 1
|
||||
|
||||
def test_add_sudo_command_groups(self):
|
||||
self.master.run_command(['ipa', 'sudocmdgroup-add', 'readers',
|
||||
'--desc', '"Applications that read"'])
|
||||
|
Loading…
Reference in New Issue
Block a user