testutils

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMatchesFile

func AssertMatchesFile(t *testing.T, actual string, p string)

AssertMatchesFile matches the actual value to a with expected file. If HACK_UPDATE_EXPECTED_IN_PLACE is set, it will write the actual value to the expected file, which is very handy when updating our tests.

func ValidateTasks

func ValidateTasks(t *testing.T, basedir string, context *fi.ModelBuilderContext)

Types

type IntegrationTestHarness

type IntegrationTestHarness struct {
	TempDir string
	T       *testing.T
	// contains filtered or unexported fields
}

func NewIntegrationTestHarness

func NewIntegrationTestHarness(t *testing.T) *IntegrationTestHarness

func (*IntegrationTestHarness) Close

func (h *IntegrationTestHarness) Close()

func (*IntegrationTestHarness) MockKopsVersion

func (h *IntegrationTestHarness) MockKopsVersion(version string)

MockKopsVersion will set the kops version to the specified value, until Close is called

func (*IntegrationTestHarness) SetupMockAWS

func (h *IntegrationTestHarness) SetupMockAWS() *awsup.MockAWSCloud

func (*IntegrationTestHarness) SetupMockGCE

func (h *IntegrationTestHarness) SetupMockGCE()

SetupMockGCE configures a mock GCE cloud provider

type Model

type Model struct {
	Cluster        *kops.Cluster
	InstanceGroups []*kops.InstanceGroup
}

func LoadModel

func LoadModel(basedir string) (*Model, error)

LoadModel loads a cluster and instancegroups from a cluster.yaml file found in basedir

Jump to

Keyboard shortcuts

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