integration

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrchestrateRouter

func NewOrchestrateRouter(dbURL string) (*gin.Engine, error)

NewOrchestrateRouter creates a router object to use for testing

func NewRegistryRouter

func NewRegistryRouter(dbURL string) (*gin.Engine, error)

NewRegistryRouter creates a router object to use for testing

Types

type OrchestraTest

type OrchestraTest struct {
	// contains filtered or unexported fields
}

OrchestraTest contains the integration testing environment

func NewOrchestraTest

func NewOrchestraTest() *OrchestraTest

NewOrchestraTest populates the OrchestraTest struct with sane defaults

func (*OrchestraTest) CleanDB

func (o *OrchestraTest) CleanDB() error

CleanDB will drop all the tables created by the orchstra user

func (*OrchestraTest) GetPGURL

func (o *OrchestraTest) GetPGURL(dbname string) string

GetPGURL returns the postgres db URL

func (*OrchestraTest) Setup

func (o *OrchestraTest) Setup() error

Setup should be run once per test-suite

func (*OrchestraTest) Teardown

func (o *OrchestraTest) Teardown() error

Teardown should be run at the end of a test suite

Jump to

Keyboard shortcuts

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