testing

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultConfig

func GetDefaultConfig() (*viper.Viper, error)

GetDefaultConfig returns the configuration at ./config/test.yaml

func GetTestDB

func GetTestDB() (*sqlx.DB, error)

GetTestDB returns a connection to the test database

func JSONFor

func JSONFor(data JSON) io.Reader

JSONFor tests

Types

type JSON

type JSON map[string]interface{}

JSON test type

type MockReadiness

type MockReadiness struct{}

MockReadiness implements Readiness interface

func (*MockReadiness) WaitForCompletion

func (*MockReadiness) WaitForCompletion(kubernetes.Interface, interface{}) error

WaitForCompletion waits until job has completed its task

Jump to

Keyboard shortcuts

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