Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "run_external_tasks" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Run external test playbook.", Category: "flow-control", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{}, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
TestFile string `yaml:"testFile" json:"testFile" require:"A" desc:"Path to the external test file to execute."`
TestConfig map[string]any `yaml:"testConfig" json:"testConfig" desc:"Configuration values to pass to the external test."`
TestConfigVars map[string]string `yaml:"testConfigVars" json:"testConfigVars" format:"expressionMap" desc:"Variable mappings for external test configuration."`
ExpectFailure bool `yaml:"expectFailure" json:"expectFailure" desc:"If true, expect the external test to fail (inverts success condition)."`
IgnoreFailure bool `yaml:"ignoreFailure" json:"ignoreFailure" desc:"If true, ignore failures from the external test."`
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.