testenvs

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTestDB

func SetupTestDB() (db *sql.DB, connString string, close func() error, err error)

SetupTestDB setup postgres database with applied app migrations inside docker container container bind random port

db *sql.DB – handle of created DB connString string – connection string to created DB close func() – must be called to clean allocated resources. Usually should be deferred immediately err – error

func SetupTestKube

func SetupTestKube(
	crdPaths ...string,
) (client client.Client, cfg *rest.Config, close func() error, mgr manager.Manager, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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