Documentation ¶
Index ¶
- func CreateTest(runID uint64, descriptor types.TestDescriptor, logger logrus.FieldLogger, ...) (types.TestRunner, error)
- func LoadExternalTestConfig(ctx context.Context, globalVars types.Variables, ...) (*types.TestConfig, types.Variables, error)
- func LoadTestDescriptors(ctx context.Context, globalVars types.Variables, ...) []types.TestDescriptor
- func LoadTestFromDB(database *db.Database, runID int) (types.Test, error)
- func WrapDBTestRun(database *db.Database, test *db.TestRun) types.Test
- type Descriptor
- type Test
- func (t *Test) AbortTest(skipCleanup bool)
- func (t *Test) GetTaskScheduler() types.TaskScheduler
- func (t *Test) GetTestVariables() types.Variables
- func (t *Test) Logger() logrus.FieldLogger
- func (t *Test) Name() string
- func (t *Test) Run(ctx context.Context) error
- func (t *Test) RunID() uint64
- func (t *Test) StartTime() time.Time
- func (t *Test) Status() types.TestStatus
- func (t *Test) StopTime() time.Time
- func (t *Test) TestID() string
- func (t *Test) Timeout() time.Duration
- func (t *Test) Validate() error
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 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
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) GetTaskScheduler ¶
func (t *Test) GetTaskScheduler() types.TaskScheduler
func (*Test) GetTestVariables ¶ added in v0.0.4
func (*Test) Logger ¶
func (t *Test) Logger() logrus.FieldLogger
func (*Test) Status ¶
func (t *Test) Status() types.TestStatus
Click to show internal directories.
Click to hide internal directories.