From 5d2358f3af8fe9cb2389da4684fbda802d3b6bec Mon Sep 17 00:00:00 2001 From: Dan Lavu Date: Mon, 7 Oct 2024 23:17:30 -0400 Subject: [PATCH] client: adding sss_ssh_authorizedkeys function --- sssd_test_framework/roles/client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sssd_test_framework/roles/client.py b/sssd_test_framework/roles/client.py index c4591f7..3a730cf 100644 --- a/sssd_test_framework/roles/client.py +++ b/sssd_test_framework/roles/client.py @@ -115,3 +115,16 @@ def sss_ssh_knownhosts(self, *args: str) -> ProcessResult: :rtype: ProcessResult """ return self.host.conn.exec(["sss_ssh_knownhosts", *args]) + + def sss_ssh_authorizedkeys(self, *args: str) -> ProcessResult: + """ + Execute sss_ssh_authorizedkeys. + + :param `*args`: Command arguments. + :type `*args`: str + :return: Command result. + :rtype: ProcessResult + """ + result = self.host.conn.exec(["sss_ssh_authorizedkeys", *args], raise_on_error=False) + + return result