From 761647f842567713032709753b6d63467d9871a6 Mon Sep 17 00:00:00 2001 From: Sudhir Menon Date: Mon, 23 Sep 2024 14:05:43 +0530 Subject: [PATCH] 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 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_installation_client.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ipatests/test_integration/test_installation_client.py b/ipatests/test_integration/test_installation_client.py index f8567b39eead4dffd522aad504fa72a086969257..884bff2f2f3e49f66da391424e128d8e31b82a8a 100644 --- a/ipatests/test_integration/test_installation_client.py +++ b/ipatests/test_integration/test_installation_client.py @@ -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], -- 2.46.2