functests

package
v0.2.23 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DynConf

func DynConf(env map[string]string) map[string]string

func EnvExists

func EnvExists(path string) bool

func InfraFromTestContext

func InfraFromTestContext(tctx *TestContext) *helpers.Infra

func MongoCtlFromTestContext

func MongoCtlFromTestContext(tctx *TestContext, host string) (*helpers.MongoCtl, error)

func ReadEnv

func ReadEnv(path string) (map[string]string, error)

func S3StorageFromTestContext

func S3StorageFromTestContext(tctx *TestContext, host string) *helpers.S3Storage

func SetupEnv

func SetupEnv(envFilePath, stagingDir string) error

func SetupStaging

func SetupStaging(imagesDir, stagingDir string) error

func WalgUtilFromTestContext

func WalgUtilFromTestContext(tctx *TestContext, host string) *helpers.WalgUtil

Types

type AuxData

type AuxData struct {
	Timestamps         map[string]helpers.OpTimestamp
	Snapshots          map[string][]helpers.NsSnapshot
	CreatedBackupNames []string
	NometaBackupNames  []string
	OplogPushEnabled   bool
	PreviousBackupTime time.Time
}

type MongoVersion

type MongoVersion struct {
	Major string
	Full  string
}

type TestContext

type TestContext struct {
	Infra    *helpers.Infra
	Env      map[string]string
	Context  context.Context
	AuxData  AuxData
	Version  MongoVersion
	Features []string
}

func NewTestContext

func NewTestContext() (*TestContext, error)

func (*TestContext) CleanEnv

func (tctx *TestContext) CleanEnv() error

func (*TestContext) ContainerFQDN

func (tctx *TestContext) ContainerFQDN(name string) string

func (*TestContext) S3Host

func (tctx *TestContext) S3Host() string

func (*TestContext) StopEnv

func (tctx *TestContext) StopEnv() error

type TestingfWrap

type TestingfWrap func(format string, args ...interface{})

func (TestingfWrap) Errorf

func (tf TestingfWrap) Errorf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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