add document to run test using minikube for lvmd daemonset
@@ -2,7 +2,8 @@ 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)][kind], this is called "e2e" test.
+The test run using [kind (Kubernetes IN Docker)][kind] to make an environment with multiple `lvmd` running as systemd service.
+In another hand, to test `lvmd` running as a daemonset, [minikube][minikube] is used to make a test environment in the localhost without container or VM.
Setup environment
-----------------
@@ -15,21 +16,53 @@ Setup environment
How to run tests
----------------
+### Run tests using kind with lvmd as systemd service
+
Start `lvmd` as a systemd service as follows:
```console
make start-lvmd
```
-Finally, run `make test`. Repeat it until you get satisfied.
-
+Run the test with the following command. Repeat it until you get satisfied.
When tests fail, use `kubectl` to inspect the Kubernetes cluster.
-Cleanup
--------
+```console
+make test
+```
+
+You can cleanup test environment as follows:
+
+```
+# stop Kubernetes
+make shutdown-kind
+
+# stop lvmd
+make stop-lvmd
+```
+
+### Run tests using minikube with lvmd as daemonset
-To stop Kubernetes, run `make shutdown-kind`.
+Make lvm and launch Kubernetes using minikube with the following commands:
-To stop `lvmd`, run `make stop-lvmd`.
+```console
+make daemonset-lvmd/create-vg
+make daemonset-lvmd/setup-minikube
+make daemonset-lvmd/update-minikube-setting
+```
+
+Run the test with the following command.
+You can inspect the Kubernetes cluster using `kubectl` command as well as kind.
+
+```console
+make daemonset-lvmd/test
+```
+
+You can cleanup test environment as follows:
+
+```console
+make daemonset-lvmd/clean
+```
[kind]: https://github.com/kubernetes-sigs/kind
+[minikube]: https://github.com/kubernetes/minikube
