agent

package
v0.0.0-...-3924ef3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(sess *session.Session, agentFixture AgentFixture, err error)

Fatal logs the fatal error, uploads the log to the bucket, then terminates the instance.

func GetTestFileList

func GetTestFileList(scriptPath string) (testFileList []string, err error)

GetTestFileList returns the list of test files in the test suite.

func PopulateResult

func PopulateResult(filename string, agentFixture AgentFixture, outputStream *os.File, errStream *os.File) (testResult resources.Result)

PopulateResult takes a test file, executes it, then persists the pass/fail result and execution time

func TerminateInstance

func TerminateInstance()

TerminateInstance terminates the instance.

Types

type AgentFixture

type AgentFixture struct {
	BucketName             string
	Timeout                int
	BucketDir              string
	ScriptPath             string
	InstanceResultFilename string
	LogFilename            string
}

AgentFixture contains constant information for the agent in the entire run.

Jump to

Keyboard shortcuts

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