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 ¶
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 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 ¶
NewKubeadmTestRunner returns a new E2E kubeadm test runner configured with the given options
func NewKubernetesTestRunner ¶
NewKubernetesTestRunner returns a new E2E (Kubernetes) test runner configured with the given options
type SuiteFlags ¶
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