common

package
v1.1.0-beta33 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IstioSetupFunc

func IstioSetupFunc(operatorFile string) func(ctx resource.Context, cfg *istio.Config)

Types

type TestCase

type TestCase struct {
	// Name of the tests
	Name string
	// Namespace to apply configuration
	Namespace string
	// Description of the Test
	Description string
	// Test is the tests function. The output from the TestGroup Deploy call is passed to the tests
	Test func(ctx resource.Context, t *testing.T, deploymentCtx *context.DeploymentContext)
	// Skip configures the tests to be skipped for the configured reason
	Skip string
	// Test file name to deploy to be fetched from box
	FileName string
	// Test folder the file exists in
	Folder string
}

TestCase is a single tests, generally used inside a TestGroup

type TestGroup

type TestGroup struct {
	// Name of the tests group
	Name string
	// Cases are a list of tests cases to run with the deployed application
	Cases []TestCase
}

TestGroup is a group of tests all using the same deployment. e.g. multiple tests all using the same httpbin k8s instance

func (TestGroup) Run

func (g TestGroup) Run(ctx resource.Context, t *testing.T, deploymentContext *context.DeploymentContext)

Run runs the tests group by first by deploying the group application, then running through each tests case.

Jump to

Keyboard shortcuts

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