Run Tests¶
Running tests through a central server¶
When client configuration exists, Jumpstarter will use the specified endpoint and token to authenticate with that server
Configuration¶
By default the libraries and CLI will look for a ~/.config/jumpstarter/client.yaml
file, which contains the endpoint and token to authenticate with the Jumpstarter
service.
Alternatively the client can receive the endpoint and token as environment variables:
export JMP_ENDPOINT=jumpstarter.my-lab.com:1443
export JMP_TOKEN=dGhpc2lzYXRva2VuLTEyMzQxMjM0MTIzNEyMzQtc2Rxd3Jxd2VycXdlcnF3ZXJxd2VyLTEyMzQxMjM0MTIz
This is useful for CI/CD systems that inject the environment variables into the pipeline.
Running tests locally (without a server)¶
When no client configuration or environment variables are set, the client will run in local mode and create an exporter instance to interact with the hardware.
Communication between the local client and exporter take place over a local
socket: /var/run/jumpstarter.sock
.
A local instance of the exporter can also be started using the following command:
systemctl start jumpstarter-exporter