sssd_test_framework.hosts.client

Client multihost host.

Classes

ClientHost(*args, **kwargs)

SSSD client host object.

class sssd_test_framework.hosts.client.ClientHost(*args, **kwargs)

Bases: BaseHost, BaseLinuxHost

SSSD client host object.

Provides features specific to SSSD client.

Note

Full backup and restore of SSSD state is supported.

Parameters:
  • auto_start – Automatically start service before taking the first backup.

  • auto_restore (bool, optional) – If True, the host is automatically restored to the backup state when a test is finished in teardown(), defaults to True

sssd_service_user: str

SSSD service user configured by default install

pytest_setup() None

Start the services via start() and take a backup by calling backup().

property features: dict[str, bool]

Features supported by the host.

start() None

Not supported.

Raises:

NotImplementedError – _description_

stop() None

Stop required services.

Raises:

NotImplementedError – If stop operation is not supported.

backup() Any

Backup all SSSD data.

Returns:

Backup data.

Return type:

Any

restore(backup_data: Any | None) None

Restore all SSSD data.

Returns:

Backup data.

Return type:

Any