ipatests: Activate ssh in sssd.conf

This testcase checks that services: ssh
is included in the sssd.conf file when
ipa-client-install is successful.

Ref: https://pagure.io/freeipa/issue/9649

Signed-off-by: Sudhir Menon <sumenon@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Sudhir Menon
2024-10-10 09:41:00 +02:00
committed by Florence Blanc-Renaud
parent 929dc56880
commit c37f4d09e2
@@ -94,6 +94,16 @@ class TestInstallClient(IntegrationTest):
).encode() not in krb5_cfg
tasks.uninstall_client(self.clients[0])
def test_check_ssh_service_is_activated(self):
"""
This test checks all default services are activated
in sssd.conf including ssh
"""
tasks.install_client(self.master, self.clients[0])
sssd_cfg = self.clients[0].get_file_contents(paths.SSSD_CONF)
assert 'services = nss, pam, ssh, sudo' in sssd_cfg.decode()
tasks.uninstall_client(self.clients[0])
def test_install_with_automount(self):
"""Test that installation with automount is successful"""
tasks.install_client(self.master, self.clients[0],