diff --git a/sssd_test_framework/hosts/client.py b/sssd_test_framework/hosts/client.py index e19e049..71e4f32 100644 --- a/sssd_test_framework/hosts/client.py +++ b/sssd_test_framework/hosts/client.py @@ -113,6 +113,7 @@ def backup(self) -> Any: backup /etc/sssd "$path/config" backup /var/log/sssd "$path/logs" backup /var/lib/sss "$path/lib" + backup /home "$path/home" echo $path """, @@ -148,12 +149,13 @@ def restore(self, backup_data: Any | None) -> None: fi }} - rm --force --recursive /etc/sssd /var/lib/sss /var/log/sssd + rm --force --recursive /etc/sssd /var/lib/sss /var/log/sssd /home restore "{backup_path}/krb5.conf" /etc/krb5.conf restore "{backup_path}/krb5.keytab" /etc/krb5.keytab restore "{backup_path}/config" /etc/sssd restore "{backup_path}/logs" /var/log/sssd restore "{backup_path}/lib" /var/lib/sss + restore "{backup_path}/home" /home """, log_level=ProcessLogLevel.Error, ) diff --git a/sssd_test_framework/utils/sssd.py b/sssd_test_framework/utils/sssd.py index 0bcfc16..c46af16 100644 --- a/sssd_test_framework/utils/sssd.py +++ b/sssd_test_framework/utils/sssd.py @@ -899,20 +899,15 @@ def autofs(self) -> None: self.sssd.authselect.select("sssd") self.sssd.enable_responder("autofs") - def mkhomedir(self, homedir: str = "/home") -> None: + def mkhomedir(self) -> None: """ Configure SSSD with mkhomedir and oddjobd. - :param homedir: Home directory path. - :type homedir: str | None, optional - #. Select authselect sssd profile with 'with-mkhomedir' #. Start oddjobd.service - #. Backup home directory """ self.sssd.authselect.select("sssd", ["with-mkhomedir"]) self.sssd.svc.start("oddjobd.service") - self.sssd.fs.backup(homedir) def proxy( self,