acceptance

package
v0.0.0-...-e2c346a Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteTestEnvironment

func NewRemoteTestEnvironment(
	vmUsername string,
	vmIP string,
	privateKeyPath string,
	fileSystem boshsys.FileSystem,
	logger boshlog.Logger,
) remoteTestEnvironment

Types

type CmdRunner

type CmdRunner interface {
	RunCommand(env map[string]string, args ...string) (string, string, int, error)
}

func NewSSHCmdRunner

func NewSSHCmdRunner(
	vmUsername string,
	vmIP string,
	privateKeyPath string,
	logger boshlog.Logger,
) CmdRunner

type Config

type Config struct {
	VMUsername      string `json:"vm_username"`
	VMIP            string `json:"vm_ip"`
	PrivateKeyPath  string `json:"private_key_path"`
	StemcellURL     string `json:"stemcell_url"`
	StemcellPath    string `json:"stemcell_path"`
	CpiReleaseURL   string `json:"cpi_release_url"`
	CpiReleasePath  string `json:"cpi_release_path"`
	BoshReleaseURL  string `json:"bosh_release_url"`
	BoshReleasePath string `json:"bosh_release_path"`
}

func NewConfig

func NewConfig(fs boshsys.FileSystem) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Environment

type Environment interface {
	Home() string
	Path(string) string
	Copy(string, string) error
	WriteContent(string, []byte) error
	RemoteDownload(string, string) error
	DownloadOrCopy(string, string, string) error
}

type MicroSSH

type MicroSSH interface {
	RunCommand(cmd string) (stdout, stderr string, exitCode int, err error)
	RunCommandWithSudo(cmd string) (stdout, stderr string, exitCode int, err error)
}

func NewMicroSSH

func NewMicroSSH(
	vmUsername string,
	vmIP string,
	privateKeyPath string,
	microUsername string,
	microIP string,
	microPassword string,
	fileSystem boshsys.FileSystem,
	logger boshlog.Logger,
) MicroSSH

Jump to

Keyboard shortcuts

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