Expand description
Utilities used for test setups.
Structs§
- Background
Process - A background process.
- Command
Output - 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
withcommand_args
as a specificuser
and returnsCommandOutput
, which captures thecommand
’s completion status. - start_
credentials_ socket - Starts a socket for
io.systemd.Credentials
usingsystemd-socket-activate
. - write_
machine_ id - Writes a dummy
/etc/machine-id
, which is required for systemd-creds.