testutils

package
v0.0.0-...-1c44903 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbUser = "admin"
	DbPass = "nimda"
	DbName = "provisioner"
	DbPort = "5432"

	TableCluster             = "cluster"
	TableGardenerConfig      = "gardener_config"
	TableOperation           = "kyma_config"
	TableKymaComponentConfig = "kyma_component_config"
	TableRuntimeUpgrade      = "runtime_upgrade"

	ClusterTableName  = "cluster"
	SchemaName        = "public"
	DockerUserNetwork = "test_network"
	EnvPipelineBuild  = "PIPELINE_BUILD"

	TableNotExistsError = "42P01"
)

Variables

View Source
var (
	SchemaFilePath = os.Getenv("GOPATH") + "/src/github.com/kyma-incubator/compass/components/provisioner/assets/database/provisioner.sql"
)

Functions

func CheckIfAllDatabaseTablesArePresent

func CheckIfAllDatabaseTablesArePresent(db *dbr.Connection) error

func CloseDatabase

func CloseDatabase(t *testing.T, connection *dbr.Connection)

func EnsureTestNetworkForDB

func EnsureTestNetworkForDB(t *testing.T, ctx context.Context) (func(), error)

func InitTestDBContainer

func InitTestDBContainer(t *testing.T, ctx context.Context, hostname string) (func(), string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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