loki

module
v0.0.0-...-bd7144e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0

README

loki

Loki is a chaos testing tool for cloud native applications with easy interfaces to write plugins and add new systems.

Build locally

Run below command. loki binary will get installed in $GOPATH/bin directory.

go install github.com/narahari92/loki/cmd/loki

Architecture

Please refer to architecture.md for details on architecture of loki.

Testing plugins

To test whether a plugin implements loki correctly, simulate your system with resources, create lokitest.Plugin with the custom plugin's System, Destroyer and killer; and create lokitest.Configuration with some identifiers and sample destroy section. Then run below code to validate that the test passes.

lokitest.ValidateAll(context.Context, *testing.T, *lokitest.Plugin, *lokitest.Configuration)

Directories

Path Synopsis
cmd
pkg
lokitest
Package lokitest provides test methods using which the plugins can validate whether they implement loki correctly or not.
Package lokitest provides test methods using which the plugins can validate whether they implement loki correctly or not.

Jump to

Keyboard shortcuts

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