mock

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name Mock Runner Name
	Name = "mock"
)

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(cfg *config.Config) (runners.Runner, error)

NewRunner returns a new Mock Runner

Types

type Mock

type Mock struct {
	runners.Runner
	// contains filtered or unexported fields
}

Mock Mock Runner struct

func (Mock) Cleanup

func (m Mock) Cleanup(plan *testers.Plan) error

Cleanup NOOP because Mock doesn't create any resource nor connection or so to any hosts.

func (Mock) Execute

func (m Mock) Execute(plan *testers.Plan, parser chan<- parsers.Input) error

Execute run the given testers.Plan and return the logs of each step and / or error

func (Mock) GetHostsForTest

func (m Mock) GetHostsForTest(test *config.Test) (*testers.Hosts, error)

GetHostsForTest return a mocked list of hots for the given test config

func (Mock) Prepare

func (m Mock) Prepare(runOpts config.RunOptions, plan *testers.Plan) error

Prepare NOOP because there is nothing to prepare because this is Mock.

Jump to

Keyboard shortcuts

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