From 1ef54f2b8fbf4bb7e7c50155050ceb31f7671795 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Mon, 15 Mar 2021 17:00:05 +0100 Subject: [PATCH] ipatests: check for the "no sudo present" string absence MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When sudo is installed, no warning should be output about sudo not being available (obviously). Check that the relevant string is not present. Fixes: https://pagure.io/freeipa/issue/8530 Signed-off-by: François Cami Reviewed-By: Armando Neto --- 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 a50a59f1a..a5ff17a0d 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -1620,3 +1620,5 @@ class TestInstallWithoutSudo(IntegrationTest): tasks.install_packages(self.clients[0], ['sudo']) for pkg in ('sudo', 'libsss_sudo'): 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