execution

package
v0.0.0-...-aedf96a Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSuiteConfigurator

type TestSuiteConfigurator interface {
	/*
		This function should be used to configure the testsuite's logging framework, and will be run
			before the testsuite is run

		Args:
			logLevelStr: The testsuite log level string passed in at runtime, which should be parsed
				 so that the logging framework can be configured.

	*/
	SetLogLevel(logLevelStr string) error

	/*
		This function should parse the custom testsuite parameters JSON (if any) and create an instance
			of the testsuite.

		Args:
			paramsJsonStr: The JSON-serialized custom params data used for configuring testsuite behaviour
				that was passed in when Kurtosis was started.
	*/
	ParseParamsAndCreateSuite(paramsJsonStr string) (testsuite.TestSuite, error)
}

Implementations of this interface are responsible for initialzing the testsuite to a state

where it can be run

type TestSuiteExecutor

type TestSuiteExecutor struct {
	// contains filtered or unexported fields
}

func NewTestSuiteExecutor

func NewTestSuiteExecutor(kurtosisApiSocket string, logLevelStr string, paramsJsonStr string, configurator TestSuiteConfigurator) *TestSuiteExecutor

func (*TestSuiteExecutor) Run

func (executor *TestSuiteExecutor) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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