Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
certs
overlays
.dockerignore
.gitignore
Dockerfile
Makefile
README.md
cleanup_test.go
e2e_test.go
hook_test.go
kustomization.yaml
kustomizeconfig.yaml
metrics_test.go
node_test.go
publish_test.go
run_test.go
scheduler-config.yaml
scheduler-policy.cfg
scheduler_test.go
suite_test.go
tools_test.go
topolvm-cluster.yaml

README.md

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

  1. Prepare Ubuntu machine.
  2. Install Docker CE.
  3. Add yourself to docker group. e.g. sudo adduser $USER docker
  4. 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.

You can’t perform that action at this time.