test

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The test package provides libaries for integration testing by starting a local control plane

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstallStrategy

type InstallStrategy struct {
	install.EmptyInstallStrategy
	// contains filtered or unexported fields
}

func (*InstallStrategy) GetCRDs

type NewlineReporter

type NewlineReporter struct{}

Print a newline after the default Reporter output so that the results are correctly parsed by test automation. See 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 {
	ControlPlane integration.ControlPlane
	Config       *rest.Config
	CRDs         []*extensionsv1beta1.CustomResourceDefinition
}

TestEnvironment creates a Kubernetes test environment that will start / stop the Kubernetes control plane and install extension APIs

func (*TestEnvironment) Start

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

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

Jump to

Keyboard shortcuts

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