From 058a9c01c73907ed1d81aeaa0298a4fde269e9cc Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Tue, 13 Apr 2021 10:28:26 +0200 Subject: [PATCH] ipatests: check that the output of sudo -V is not displayed During client installation, the installer calls sudo -V to check if sudo command is installed. The output must not be displayed in stdout. Related: https://pagure.io/freeipa/issue/8767 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_installation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index a5ff17a0d..274343822 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -1561,6 +1561,7 @@ class TestInstallWithoutSudo(IntegrationTest): num_clients = 1 num_replicas = 1 no_sudo_str = "The sudo binary does not seem to be present on this" + sudo_version_str = "Sudo version" @classmethod def install(cls, mh): @@ -1622,3 +1623,4 @@ class TestInstallWithoutSudo(IntegrationTest): assert tasks.is_package_installed(self.clients[0], pkg) result = tasks.install_client(self.master, self.clients[0]) assert self.no_sudo_str not in result.stderr_text + assert self.sudo_version_str not in result.stdout_text