Documentation ¶
Index ¶
- type AssertStep
- type CLIOptions
- type ComposeConfig
- type Config
- type DestroyStep
- type DockerCompose
- func (d *DockerCompose) Build(services ...string) error
- func (d *DockerCompose) Cleanup() error
- func (d *DockerCompose) DestroyServices(output TestOutput, name ...string) error
- func (d *DockerCompose) ExecuteTask(prefix string, task TaskConfig, env TaskEnvironment, output TestOutput) error
- func (d *DockerCompose) Pull() error
- func (d *DockerCompose) StartAll(output TestOutput) error
- func (d *DockerCompose) StartServices(output TestOutput, name ...string) error
- func (d *DockerCompose) StopAll(output TestOutput) error
- func (d *DockerCompose) StopServices(output TestOutput, name ...string) error
- func (d *DockerCompose) SystemOutput() ([]byte, error)
- type ExecStep
- type FailStep
- type Runtime
- type ServiceConfig
- type SpecConfig
- type StartStep
- type Step
- func NewAssertStep(task TaskConfig, env TaskEnvironment) Step
- func NewDestroyStep(config StepConfig) Step
- func NewExecStep(task TaskConfig, env TaskEnvironment) Step
- func NewFailStep(task TaskConfig, env TaskEnvironment) Step
- func NewStartStep(config StepConfig) Step
- func NewStopStep(config StepConfig) Step
- func NewWaitStep(timeout time.Duration, task TaskConfig, env TaskEnvironment) Step
- type StepConfig
- type StopStep
- type Suite
- type SuiteConfig
- type TaskConfig
- type TaskEnvironment
- type Tasks
- type TestConfig
- type TestOutput
- type TestReport
- type TestRunner
- type WaitStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertStep ¶
type AssertStep struct {
// contains filtered or unexported fields
}
func (*AssertStep) Description ¶
func (s *AssertStep) Description() string
func (*AssertStep) Execute ¶
func (s *AssertStep) Execute(runtime Runtime, output TestOutput) error
type CLIOptions ¶ added in v0.5.0
type CLIOptions struct { DelmoFile string DockerMachine string OnlyBuildTask bool ParallelExecution bool SkipPull bool Localhost string Tests []string Help bool Usage func() }
func ParseOptions ¶ added in v0.5.0
func ParseOptions(args []string) CLIOptions
type ComposeConfig ¶
type ComposeConfig struct {
Services map[string]ServiceConfig `yaml:"services"`
}
type Config ¶
type Config struct { Suite SuiteConfig `yaml:"suite"` TaskList []TaskConfig `yaml:"tasks"` Tasks Tasks `yaml:"-"` Tests []TestConfig `yaml:"tests"` }
func LoadConfig ¶
type DestroyStep ¶
type DestroyStep struct {
// contains filtered or unexported fields
}
func (*DestroyStep) Description ¶
func (s *DestroyStep) Description() string
func (*DestroyStep) Execute ¶
func (s *DestroyStep) Execute(runtime Runtime, output TestOutput) error
type DockerCompose ¶
type DockerCompose struct {
// contains filtered or unexported fields
}
func NewDockerCompose ¶
func NewDockerCompose(composeFile, scope string) (*DockerCompose, error)
func (*DockerCompose) Build ¶
func (d *DockerCompose) Build(services ...string) error
func (*DockerCompose) Cleanup ¶
func (d *DockerCompose) Cleanup() error
func (*DockerCompose) DestroyServices ¶
func (d *DockerCompose) DestroyServices(output TestOutput, name ...string) error
func (*DockerCompose) ExecuteTask ¶
func (d *DockerCompose) ExecuteTask(prefix string, task TaskConfig, env TaskEnvironment, output TestOutput) error
func (*DockerCompose) Pull ¶
func (d *DockerCompose) Pull() error
func (*DockerCompose) StartAll ¶
func (d *DockerCompose) StartAll(output TestOutput) error
func (*DockerCompose) StartServices ¶
func (d *DockerCompose) StartServices(output TestOutput, name ...string) error
func (*DockerCompose) StopAll ¶
func (d *DockerCompose) StopAll(output TestOutput) error
func (*DockerCompose) StopServices ¶
func (d *DockerCompose) StopServices(output TestOutput, name ...string) error
func (*DockerCompose) SystemOutput ¶
func (d *DockerCompose) SystemOutput() ([]byte, error)
type ExecStep ¶
type ExecStep struct {
// contains filtered or unexported fields
}
func (*ExecStep) Description ¶
type FailStep ¶
type FailStep struct {
// contains filtered or unexported fields
}
func (*FailStep) Description ¶
type Runtime ¶
type Runtime interface { StartAll(TestOutput) error StopAll(TestOutput) error StopServices(TestOutput, ...string) error StartServices(TestOutput, ...string) error DestroyServices(TestOutput, ...string) error SystemOutput() ([]byte, error) ExecuteTask(string, TaskConfig, TaskEnvironment, TestOutput) error Cleanup() error }
type ServiceConfig ¶
type ServiceConfig struct {
Image string `yaml:"image"`
}
type SpecConfig ¶
type SpecConfig []StepConfig
type StartStep ¶
type StartStep struct {
// contains filtered or unexported fields
}
func (*StartStep) Description ¶
type Step ¶
type Step interface { Execute(Runtime, TestOutput) error Description() string }
func NewAssertStep ¶
func NewAssertStep(task TaskConfig, env TaskEnvironment) Step
func NewDestroyStep ¶
func NewDestroyStep(config StepConfig) Step
func NewExecStep ¶
func NewExecStep(task TaskConfig, env TaskEnvironment) Step
func NewFailStep ¶
func NewFailStep(task TaskConfig, env TaskEnvironment) Step
func NewStartStep ¶
func NewStartStep(config StepConfig) Step
func NewStopStep ¶
func NewStopStep(config StepConfig) Step
func NewWaitStep ¶
func NewWaitStep(timeout time.Duration, task TaskConfig, env TaskEnvironment) Step
type StepConfig ¶
type StopStep ¶
type StopStep struct {
// contains filtered or unexported fields
}
func (*StopStep) Description ¶
type Suite ¶
type Suite struct {
// contains filtered or unexported fields
}
func NewSuite ¶
func NewSuite(options CLIOptions, config *Config, globalTaskEnvironment TaskEnvironment) (*Suite, error)
type SuiteConfig ¶
type TaskConfig ¶
type TaskEnvironment ¶
type TaskEnvironment []string
type Tasks ¶
type Tasks map[string]TaskConfig
type TestConfig ¶
type TestConfig struct { Name string `yaml:"name"` BeforeStartup []string `yaml:"before_startup"` Spec SpecConfig `yaml:"spec"` }
type TestReport ¶
func NewTestReport ¶
func NewTestReport() *TestReport
func (*TestReport) Fail ¶
func (r *TestReport) Fail(err error)
type TestRunner ¶
type TestRunner struct {
// contains filtered or unexported fields
}
func NewTestRunner ¶
func NewTestRunner(config TestConfig, tasks Tasks, globalTaskEnvironment TaskEnvironment) *TestRunner
func (*TestRunner) RunTest ¶
func (tr *TestRunner) RunTest(runtime Runtime, out TestOutput) *TestReport
Source Files ¶
Click to show internal directories.
Click to hide internal directories.