project

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDirectory = "integration"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir        string
	K8sContext string
	Name       string
	Tag        string
}

type Dependencies

type Dependencies struct {
	Logger micrologger.Logger
	Runner runner.Runner
	Wait   *wait.Wait
	Fs     afero.Fs
}

type E2e

type E2e struct {
	Version string `yaml:"version"`
	Test    Test   `yaml:"test"`
}

type Project

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

func New

func New(deps *Dependencies, cfg *Config) *Project

func (*Project) CommonSetupSteps

func (p *Project) CommonSetupSteps(ctx context.Context) error

func (*Project) CommonTearDownSteps

func (p *Project) CommonTearDownSteps(ctx context.Context) error

func (*Project) RunStep

func (p *Project) RunStep(step Step) error

func (*Project) Test

func (p *Project) Test(ctx context.Context) error

type Step

type Step struct {
	Run     string   `yaml:"run"`
	WaitFor WaitStep `yaml:"waitFor"`
}

type Test

type Test struct {
	Env []string `yaml:"env"`
}

type WaitStep

type WaitStep struct {
	Run     string        `yaml:"run"`
	Match   string        `yaml:"match"`
	Timeout time.Duration `yaml:"timeout"`
	Step    time.Duration `yaml:"step"`
}

Jump to

Keyboard shortcuts

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