Documentation ¶
Index ¶
- type TestCluster
- func (t *TestCluster) DropFile(localPath string) error
- func (t *TestCluster) ListNativeFunctions() []string
- func (t *TestCluster) MustSSH(m platform.Machine, cmd string) []byte
- func (t *TestCluster) Run(name string, f func(c TestCluster)) bool
- func (t *TestCluster) RunNative(funcName string, m platform.Machine) bool
- func (t *TestCluster) SSH(m platform.Machine, cmd string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCluster ¶
TestCluster embedds a Cluster to provide platform independant helper methods.
func (*TestCluster) DropFile ¶
func (t *TestCluster) DropFile(localPath string) error
DropFile places file from localPath to ~/ on every machine in cluster
func (*TestCluster) ListNativeFunctions ¶
func (t *TestCluster) ListNativeFunctions() []string
ListNativeFunctions returns a slice of function names that can be executed directly on machines in the cluster.
func (*TestCluster) MustSSH ¶ added in v0.8.0
func (t *TestCluster) MustSSH(m platform.Machine, cmd string) []byte
MustSSH runs a ssh command on the given machine in the cluster, writes its stderr to the test's output as a 'Log' line, fails the test if the command is unsuccessful, and returns the command's stdout.
func (*TestCluster) Run ¶ added in v0.5.0
func (t *TestCluster) Run(name string, f func(c TestCluster)) bool
Run runs f as a subtest and reports whether f succeeded.
func (*TestCluster) RunNative ¶
func (t *TestCluster) RunNative(funcName string, m platform.Machine) bool
RunNative runs a registered NativeFunc on a remote machine
Click to show internal directories.
Click to hide internal directories.