test

package
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package test contains relevant test parameters.

Index

Constants

This section is empty.

Variables

View Source
var (
	Job = &massh.Job{
		Command: "echo \"Hello, World\"",
	}

	SSHConfig = &ssh.ClientConfig{
		User:            "ubuntu",
		HostKeyCallback: ssh.InsecureIgnoreHostKey(),
		Timeout:         time.Duration(5) * time.Second,
	}

	Config = &massh.Config{
		Hosts:      map[string]struct{}{},
		SSHConfig:  SSHConfig,
		Job:        Job,
		WorkerPool: 10,
	}

	AWSInstances []types.Instance
	// Filter for omnivore AWS EC2 group.
	AWSInstanceFilters = map[string][]string{
		"network-interface.group-name": {"omnivore"},
	}
	AWSWaitForStartSeconds = 20
)

Functions

func GetAWSTestHosts

func GetAWSTestHosts(t *testing.T) []string

func InitAWSHosts

func InitAWSHosts(t *testing.T)

func InitTestLogger

func InitTestLogger()

func ReadStreamWithTimeout

func ReadStreamWithTimeout(res *massh.Result, timeout time.Duration, wg *sync.WaitGroup, t *testing.T)

func SetAWSHosts

func SetAWSHosts(t *testing.T)

func StopAWSTestHosts

func StopAWSTestHosts(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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