mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: test_sudo: Expect root listed out if no RunAsUser available
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
committed by
Petr Viktorin
parent
701f1fc8ba
commit
e7969f5af5
@@ -481,7 +481,7 @@ class TestSudo(IntegrationTest):
|
||||
|
||||
def test_sudo_rule_restricted_to_running_as_single_group(self):
|
||||
result1 = self.list_sudo_commands("testuser1", verbose=True)
|
||||
assert "RunAsUsers:" not in result1.stdout_text
|
||||
assert "RunAsUsers: root" in result1.stdout_text
|
||||
assert "RunAsGroups: testgroup2" in result1.stdout_text
|
||||
|
||||
def test_setting_category_to_all_with_valid_entries_runasgroup(self):
|
||||
@@ -502,7 +502,7 @@ class TestSudo(IntegrationTest):
|
||||
|
||||
def test_sudo_rule_restricted_to_running_as_single_local_group(self):
|
||||
result1 = self.list_sudo_commands("testuser1", verbose=True)
|
||||
assert "RunAsUsers:" not in result1.stdout_text
|
||||
assert "RunAsUsers: root" in result1.stdout_text
|
||||
assert "RunAsGroups: localgroup" in result1.stdout_text
|
||||
|
||||
def test_setting_category_to_all_with_valid_entries_runasgroup_local(self):
|
||||
|
||||
Reference in New Issue
Block a user