End-to-end tests of TopoLVM using kind
This directory contains codes for end-to-end tests of TopoLVM.
Since the tests make use of kind (Kubernetes IN Docker), this is called "e2e" test.
Setup environment
- Prepare Ubuntu machine.
- Install Docker CE.
- Add yourself to
docker
group. e.g. sudo adduser $USER docker
- Run
make setup
.
How to run tests
Set KUBECONFIG
envvar as follows:
export KUBECONFIG=$(kind get kubeconfig-path)
Start lvmd
as a systemd service as follows:
make start-lvmd
Finally, run make test
. Repeat it until you get satisfied.
When tests fail, use kubectl
to inspect the Kubernetes cluster.
Cleanup
To stop Kubernetes, run make shutdown-kind
.
To stop lvmd
, run make stop-lvmd
.