params

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package params implements function parameters for [e2e.Suite]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDevMode

func WithDevMode() func(*Params)

WithDevMode enables dev mode. Dev mode doesn't destroy the environment when the test finished which can be useful when writing a new E2E test.

func WithSkipDeleteOnFailure

func WithSkipDeleteOnFailure() func(*Params)

WithSkipDeleteOnFailure doesn't destroy the environment when a test fail.

func WithStackName

func WithStackName(stackName string) func(*Params)

WithStackName overrides the default stack name. This function is useful only when using [Run].

Types

type Option

type Option = func(*Params)

Option is an optional function parameter type for e2e options

type Params

type Params struct {
	StackName string

	// Setting DevMode allows to skip deletion regardless of test results
	// Unavailable in CI.
	DevMode bool

	SkipDeleteOnFailure bool
}

Params implements [e2e.Suite] options

Jump to

Keyboard shortcuts

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