acc-tests-config-maker
Last updated
Last updated
Last updated: 2025-06-02 01:06:31.173446 File source:
This project reads client certs and server certs and outputs a file compatible with the acceptance tests.
For more details please refer to the
Python >3.9
uv
First you should create the tokens from the remote. Log into each server and
execute incus config trust add {name}
. The name should be descriptive of its
use and is for reference when managing the target server.
Then you should create the certificates. To do so, first build the provided docker image:
Then open a shell in a container using that image
Inside that shell, you can issue the certificates for each server. You can also
change -v ./incus:/root/.config/incus
to a different folder map if issuing
server certificates for different clients, i.e. -v ./incus-new-user:/root/.config/incus
To generate the cerfificates:
Now make sure you fix the permissions before running this tool:
Then you can generate the config file using this tool:
This will generate a new config file with the required certificates. If you want to amend an existing config file for instance to add new remotes to a pre-existing config, you can pass the existing config file to the tool:
Also, when managing multiple users, you can specify the incus config folder as well as the existing config file:
The output file is called config_out.yml
and is deployed in the current
working directory from which this tool is being executed.