test

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewlineReporter

type NewlineReporter struct{}

Print a newline after the default Reporter due to issue https://github.com/jstemmer/go-junit-report/issues/31

func (NewlineReporter) AfterSuiteDidRun

func (NewlineReporter) AfterSuiteDidRun(setupSummary *SetupSummary)

func (NewlineReporter) BeforeSuiteDidRun

func (NewlineReporter) BeforeSuiteDidRun(setupSummary *SetupSummary)

func (NewlineReporter) SpecDidComplete

func (NewlineReporter) SpecDidComplete(specSummary *SpecSummary)

func (NewlineReporter) SpecSuiteDidEnd

func (NewlineReporter) SpecSuiteDidEnd(summary *SuiteSummary)

SpecSuiteDidEnd Prints a newline between "35 Passed | 0 Failed | 0 Pending | 0 Skipped" and "--- PASS:"

func (NewlineReporter) SpecSuiteWillBegin

func (NewlineReporter) SpecSuiteWillBegin(config GinkgoConfigType, summary *SuiteSummary)

func (NewlineReporter) SpecWillRun

func (NewlineReporter) SpecWillRun(specSummary *SpecSummary)

type TestEnvironment

type TestEnvironment struct {
	StopServer        chan struct{}
	ServerOutput      *io.PipeWriter
	ApiserverCobraCmd *cobra.Command
	ApiserverOptions  *server.ServerOptions
	ApiserverPort     int
	BearerToken       string
	EtcdClientPort    int
	EtcdPeerPort      int
	EtcdPath          string
	EtcdCmd           *exec.Cmd
	Done              bool
	// contains filtered or unexported fields
}

func NewTestEnvironment

func NewTestEnvironment(apis []*builders.APIGroupBuilder, openapidefs openapi.GetOpenAPIDefinitions) *TestEnvironment

func (*TestEnvironment) Start

func (te *TestEnvironment) Start() *rest.Config

Start starts a local Kubernetes server and updates te.ApiserverPort with the port it is listening on

func (*TestEnvironment) Stop

func (te *TestEnvironment) Stop()

Stop stops a running server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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