ipatests: check for the "no sudo present" string absence

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 <fcami@redhat.com>
Reviewed-By: Armando Neto <abiagion@redhat.com>
This commit is contained in:
François Cami authored and Rob Crittenden committed 2021-03-16 08:44:03 -04:00
1 parent abaa614a3c
commit 1ef54f2b8f
1 file changed
+2
@@ -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