e2e

package
v0.0.0-...-72b5bd8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package e2e implements support for running kubeadm e2e tests or kubernetes e2e test.

It takes care of building upstream test suites if necessary, and provides "sane" defaults for simplifying test invocation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GinkgoFlags

type GinkgoFlags map[string]string

GinkgoFlags defines a type for handling flag/values pairs to be passed to the ginkgo test runner

func NewGinkgoFlags

func NewGinkgoFlags(flagString string) (GinkgoFlags, error)

NewGinkgoFlags returns a new GinkgoFlags struct created by parsing the space-separated list of arguments

func (GinkgoFlags) AddFocusRegex

func (g GinkgoFlags) AddFocusRegex(val string)

AddFocusRegex allows to add a new regex to pass to ginkgo with the --focus flag. In case the flag is already set, the new regex is appended (existing or new)

func (GinkgoFlags) AddSkipRegex

func (g GinkgoFlags) AddSkipRegex(val string)

AddSkipRegex allows to add a new regex to pass to ginkgo with the --skip flag. In case the flag is already set, the new regex is appended (existing or new)

type Option

type Option func(*Runner)

Option is an Runner configuration option supplied to NewRunner

func KubeRoot

func KubeRoot(kubeRoot string) Option

KubeRoot option sets the kubernetes checkout folder

func WithGinkgoFlags

func WithGinkgoFlags(ginkgoFlags GinkgoFlags) Option

WithGinkgoFlags option sets flags for ginkgo

func WithSuiteFlags

func WithSuiteFlags(suiteFlags SuiteFlags) Option

WithSuiteFlags option sets flags for the test program

type Runner

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

Runner defines attributes for a Kubernetes artifact extractor

func NewKubeadmTestRunner

func NewKubeadmTestRunner(options ...Option) (runner *Runner, err error)

NewKubeadmTestRunner returns a new E2E kubeadm test runner configured with the given options

func NewKubernetesTestRunner

func NewKubernetesTestRunner(options ...Option) (runner *Runner, err error)

NewKubernetesTestRunner returns a new E2E (Kubernetes) test runner configured with the given options

func (*Runner) Run

func (r *Runner) Run() error

Run executes tests as defined by the selected runner options. it takes care of building ginkgo and upstream test suites if necessary,

type SuiteFlags

type SuiteFlags map[string]string

SuiteFlags defines a type for handling flag/values pairs to be passed to the test suite

func NewSuiteFlags

func NewSuiteFlags(flagString string) (SuiteFlags, error)

NewSuiteFlags returns a new SuiteFlags struct created by parsing the space-separated list of arguments

Jump to

Keyboard shortcuts

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