Module test

Module test 

Source
Expand description

Utilities used for test setups.

Structs§

BackgroundProcess
A background process.

Enums§

Error
An error that may occur when using test utils.

Functions§

admin_credentials
Creates an AdminCredentials from config data.
create_full_credentials
Creates a list of [FullCredentials] for a list of [UserId]s.
get_tmp_config
Returns a configuration file with data as contents in a temporary location.
list_files_in_dir
Recursively lists files, their permissions and ownership.
prepare_system_with_config
Prepares a system for use with Signstar.
signstar_config
Creates a SignstarConfig from config data.
start_credentials_socket
Starts a socket for io.systemd.Credentials using systemd-socket-activate.
write_machine_id
Writes a dummy /etc/machine-id, which is required for systemd-creds.