Crate signstar_test

Source
Expand description

Utilities used for test setups.

Structs§

BackgroundProcess
A background process.
CommandOutput
Data on a command that has been executed.

Enums§

Error
An error that may occur when using test utils.

Functions§

create_users
Creates a set of users.
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.
run_command_as_user
Runs a command with command_args as a specific user and returns CommandOutput, which captures the command’s completion status.
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.