Skip to main content

Module test

Module test 

Source
Expand description

Utilities used for test setups.

Modulesยง

impl_any
When any of the HSM backends is present.

Structsยง

BackgroundProcess
A background process.
ConfigFileConfig
Configuration for how and where to provide a Signstar configuration file.
SystemPrepareConfig
Configuration on how to prepare a system for a test setup.
SystemUserConfig
Configuration for the creation of system users.

Enumsยง

ConfigFileLocation
The targeted location for a Signstar configuration file.
ConfigFileVariant
The Signstar configuration file variant used for the file contents.
Error
An error that may occur when using test utils.

Constantsยง

ALL_BACKENDS_ADMIN_PLAINTEXT_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
ALL_BACKENDS_ADMIN_PLAINTEXT_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
ALL_BACKENDS_ADMIN_SSS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
ALL_BACKENDS_ADMIN_SSS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
ALL_BACKENDS_ADMIN_SYSTEMD_CREDS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
ALL_BACKENDS_ADMIN_SYSTEMD_CREDS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM and YubiHSM2 backends.
NO_BACKEND_ADMIN_PLAINTEXT_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with no HSM backend.
NO_BACKEND_ADMIN_PLAINTEXT_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with no HSM backend.
NO_BACKEND_ADMIN_SSS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with no HSM backend.
NO_BACKEND_ADMIN_SSS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with no HSM backend.
NO_BACKEND_ADMIN_SYSTEMD_CREDS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with no HSM backend.
NO_BACKEND_ADMIN_SYSTEMD_CREDS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with no HSM backend.
ONLY_NETHSM_ADMIN_PLAINTEXT_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM backend.
ONLY_NETHSM_ADMIN_PLAINTEXT_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM backend.
ONLY_NETHSM_ADMIN_SSS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM backend.
ONLY_NETHSM_ADMIN_SSS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM backend.
ONLY_NETHSM_ADMIN_SYSTEMD_CREDS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with NetHSM backend.
ONLY_NETHSM_ADMIN_SYSTEMD_CREDS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with NetHSM backend.
ONLY_YUBIHSM2_ADMIN_PLAINTEXT_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_ADMIN_PLAINTEXT_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_ADMIN_SSS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_ADMIN_SSS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_ADMIN_SYSTEMD_CREDS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_ADMIN_SYSTEMD_CREDS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_PLAINTEXT_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_PLAINTEXT_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_SSS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_SSS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_SYSTEMD_CREDS_NON_ADMIN_PLAINTEXT ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.
ONLY_YUBIHSM2_MOCKHSM_ADMIN_SYSTEMD_CREDS_NON_ADMIN_SYSTEMD_CREDS ๐Ÿ”’
Config with YubiHSM2 mockhsm backend.

Functionsยง

create_config ๐Ÿ”’
Creates a configuration file in a location based on ConfigFileLocation and ConfigFileVariant.
create_full_credentials
Creates a list of [FullCredentials] for a list of [UserId]s.
create_unix_users_and_homes ๐Ÿ”’
Creates all Unix users and their homes based on a Config.
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.
nethsm_admin_credentials
Creates an AdminCredentials 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.