runner

package
v0.0.0-...-a67ab43 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunBBRCommand

func RunBBRCommand(description string, config Config, args ...string) *gexec.Session

func RunBBRCommandSuccessfullyWithFailureMessage

func RunBBRCommandSuccessfullyWithFailureMessage(description string, config Config, args ...string)

func RunBoshCommand

func RunBoshCommand(description string, config Config, args ...string) *gexec.Session

func RunBoshCommandSuccessfullyWithFailureMessage

func RunBoshCommandSuccessfullyWithFailureMessage(description string, config Config, args ...string) *gexec.Session

func RunBoshCommandViaSsh

func RunBoshCommandViaSsh(description string, config Config, sshBaseCommand string, args ...string) *gexec.Session

func RunBoshDisasterRecoveryAcceptanceTestsSerially

func RunBoshDisasterRecoveryAcceptanceTestsSerially(config Config, testCases []TestCase)

func RunCommandInDirectorVM

func RunCommandInDirectorVM(description string, config Config, cmd string, args ...string) *gexec.Session

func RunCommandInDirectorVMSuccessfullyWithFailureMessage

func RunCommandInDirectorVMSuccessfullyWithFailureMessage(description string, config Config, cmd string, args ...string) *gexec.Session

func RunCommandSuccessfullyWithFailureMessage

func RunCommandSuccessfullyWithFailureMessage(description string, writer io.Writer, cmd string, args ...string) *gexec.Session

func RunCommandWithStream

func RunCommandWithStream(description string, writer io.Writer, cmd string, args ...string) *gexec.Session

Types

type BOSHConfig

type BOSHConfig struct {
	Host              string
	SSHUsername       string
	SSHPrivateKeyPath string
	Client            string
	ClientSecret      string
	CACertPath        string
	CloudConfig       CloudConfig
}

type CloudConfig

type CloudConfig struct {
	DefaultVMType  string
	DefaultNetwork string
	DefaultAZ      string
}

type Config

type Config struct {
	BOSH          BOSHConfig
	Credhub       CredhubConfig
	BBRBinaryPath string
	ArtifactPath  string
	StemcellSrc   string
	Timeout       time.Duration
	Jumpbox       *jumpbox
}

func NewConfig

func NewConfig(integrationConfig acceptance.IntegrationConfig, bbrBinaryPath, artifactDirPath string) (Config, error)

type CredhubConfig

type CredhubConfig struct {
	CA           string
	Client       string
	ClientSecret string
	Server       string
}

type IntegrationConfigTestCaseFilter

type IntegrationConfigTestCaseFilter map[string]interface{}

func NewIntegrationConfigTestCaseFilter

func NewIntegrationConfigTestCaseFilter(rawConfig []byte) (IntegrationConfigTestCaseFilter, error)

func (IntegrationConfigTestCaseFilter) Filter

func (f IntegrationConfigTestCaseFilter) Filter(testCases []TestCase) ([]TestCase, error)

type TestCase

type TestCase interface {
	Name() string
	BeforeBackup(Config)
	AfterBackup(Config)
	AfterRestore(Config)
	Cleanup(Config)
}

type TestCaseFilter

type TestCaseFilter interface {
	Filter([]TestCase) ([]TestCase, error)
}

Jump to

Keyboard shortcuts

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