testsetups

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBMigration added in v1.5.10

func DBMigration(spec *DBMigrationSpec) (*environment.Environment, error)

DBMigration returns an environment with DB migrated from FromVersionSpec to ToVersionSpec

func Index added in v1.1.22

Index to see barbones running statistics

func ShutDown added in v1.1.22

func ShutDown(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

ShutDown attempts to gracefully shut down the running test

func ShutDownConfirm added in v1.1.22

func ShutDownConfirm(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

ShutDownConfirm requires the user to enter a randomly generated code to shut down the test

func StartRemoteControlServer added in v1.1.22

func StartRemoteControlServer(name string, stopChan chan struct{})

StartRemoteControlServer starts a server to control soak test shut downs. Shutdown signal is sent to the stopChan

Types

type DBMigrationSpec added in v1.5.10

type DBMigrationSpec struct {
	FromSpec          FromVersionSpec
	ToSpec            ToVersionSpec
	KeepConnection    bool
	RemoveOnInterrupt bool
}

type FromVersionSpec added in v1.5.10

type FromVersionSpec struct {
	Image string
	Tag   string
}

type ToVersionSpec added in v1.5.10

type ToVersionSpec struct {
	Image string
	Tag   string
}

Jump to

Keyboard shortcuts

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