test

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTest

func CreateTest(runID uint64, descriptor types.TestDescriptor, logger logrus.FieldLogger, services types.TaskServices, configOverrides map[string]any) (types.TestRunner, error)

func LoadExternalTestConfig added in v0.0.5

func LoadExternalTestConfig(ctx context.Context, globalVars types.Variables, extTestCfg *types.ExternalTestConfig) (*types.TestConfig, types.Variables, error)

func LoadTestDescriptors added in v0.0.4

func LoadTestDescriptors(ctx context.Context, globalVars types.Variables, localTests []*types.TestConfig, externalTests []*types.ExternalTestConfig) []types.TestDescriptor

func LoadTestFromDB added in v0.0.12

func LoadTestFromDB(database *db.Database, runID int) (types.Test, error)

func WrapDBTestRun added in v0.0.12

func WrapDBTestRun(database *db.Database, test *db.TestRun) types.Test

Types

type Descriptor added in v0.0.4

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

func NewDescriptor added in v0.0.5

func NewDescriptor(testID, testSrc string, config *types.TestConfig, variables types.Variables) *Descriptor

func (*Descriptor) Config added in v0.0.4

func (d *Descriptor) Config() *types.TestConfig

func (*Descriptor) Err added in v0.0.4

func (d *Descriptor) Err() error

func (*Descriptor) ID added in v0.0.4

func (d *Descriptor) ID() string

func (*Descriptor) Source added in v0.0.4

func (d *Descriptor) Source() string

func (*Descriptor) Vars added in v0.0.6

func (d *Descriptor) Vars() types.Variables

type Test

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

func (*Test) AbortTest added in v0.0.4

func (t *Test) AbortTest(skipCleanup bool)

func (*Test) GetTaskScheduler

func (t *Test) GetTaskScheduler() types.TaskScheduler

func (*Test) GetTestVariables added in v0.0.4

func (t *Test) GetTestVariables() types.Variables

func (*Test) Logger

func (t *Test) Logger() logrus.FieldLogger

func (*Test) Name

func (t *Test) Name() string

func (*Test) Run

func (t *Test) Run(ctx context.Context) error

func (*Test) RunID added in v0.0.4

func (t *Test) RunID() uint64

func (*Test) StartTime

func (t *Test) StartTime() time.Time

func (*Test) Status

func (t *Test) Status() types.TestStatus

func (*Test) StopTime

func (t *Test) StopTime() time.Time

func (*Test) TestID added in v0.0.4

func (t *Test) TestID() string

func (*Test) Timeout

func (t *Test) Timeout() time.Duration

func (*Test) Validate

func (t *Test) Validate() error

Jump to

Keyboard shortcuts

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