This is a simple example LXD client implementation.
This client library tests by querying LXD directly, no mocks. To do this, it
needs some keys, which can be generated with the included ./generate_keys
script.
./generate_keys
Add the corresponding certificate to your local LXD with:
lxc config trust add ./.keys/tests.crt
These tests start containers, and expect an image to exist with the testing
alias:
lxc image copy images:alpine/edge local: --alias=testing
These tests also expect to be able to use a testing
profile, that contains a
root disk & network interface, an example is included in this repository and
can be imported like so:
lxc profile create testing
cat ./profile.yaml | lxc profile edit testing