summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-19 13:31:40 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-25 20:14:52 +0200
commite7969f5af56be1b9163a8f9ee4686becb3fdcb59 (patch)
tree4c747e53fd2d7f65e766bc8b67a812b07f65d044
parent701f1fc8ba8fa2cbde6c16b031793d0069fddd33 (diff)
downloadfreeipa-e7969f5af56be1b9163a8f9ee4686becb3fdcb59.tar.gz
freeipa-e7969f5af56be1b9163a8f9ee4686becb3fdcb59.tar.xz
freeipa-e7969f5af56be1b9163a8f9ee4686becb3fdcb59.zip
ipatests: test_sudo: Expect root listed out if no RunAsUser available
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
-rw-r--r--ipatests/test_integration/test_sudo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipatests/test_integration/test_sudo.py b/ipatests/test_integration/test_sudo.py
index 77632130c..2c4116c4d 100644
--- a/ipatests/test_integration/test_sudo.py
+++ b/ipatests/test_integration/test_sudo.py
@@ -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):