releasetesting

package
v2.16.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Namespace   string
	KubeClient  environment.KubeClient
	Stream      services.ReleaseService_RunReleaseTestServer
	Timeout     int64
	Parallel    bool
	Parallelism uint32
	// contains filtered or unexported fields
}

Environment encapsulates information about where test suite executes and returns results

func (*Environment) DeleteTestPods

func (env *Environment) DeleteTestPods(testManifests []string)

DeleteTestPods deletes resources given in testManifests

func (*Environment) GetLogs

func (env *Environment) GetLogs(testManifests []string)

GetLogs collects the logs from the pods created in testManifests

type TestSuite

type TestSuite struct {
	StartedAt     *timestamp.Timestamp
	CompletedAt   *timestamp.Timestamp
	TestManifests []string
	Results       []*release.TestRun
}

TestSuite what tests are run, results, and metadata

func NewTestSuite

func NewTestSuite(rel *release.Release) (*TestSuite, error)

NewTestSuite takes a release object and returns a TestSuite object with test definitions

extracted from the release

func (*TestSuite) Run

func (ts *TestSuite) Run(env *Environment) error

Run executes tests in a test suite and stores a result within a given environment

Jump to

Keyboard shortcuts

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