e2e

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 2 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL