ChaosBehaviours

Types

Link copied to clipboard

Blocks the current thread.

Link copied to clipboard
object EatMemory

Allocates memory in a busy loop until an OOM occurs.

Link copied to clipboard

System exits from the process.

Link copied to clipboard
object Latency

Blocks the thread for a random amount of time within the allocated range.

Link copied to clipboard
object NoBody

Strips the entire body from a response.

Link copied to clipboard
object None

Does absolutely nothing.

Link copied to clipboard

Return the provided response.

Link copied to clipboard

Returns an empty response with the appropriate status.

Link copied to clipboard
object SnipBody

Strips the body from a response to a particular length.

Link copied to clipboard

Strips the body from a request to a particular length.

Link copied to clipboard

Allocates memory in a busy loop until an OOM occurs.

Link copied to clipboard

Throws the appropriate exception.

Link copied to clipboard
class Variable(var current: Behaviour = None()) : Behaviour

Provide a means of modifying a ChaosBehaviour at runtime.