testing

package
v0.0.0-...-9c81b8b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAction

func AssertAction(t *testing.T, expected, actual kubetesting.Action)

AssertAction will assert that expected action should be equal with actual action NOTE(liubog2008): now only create, update and patch actions will assert content of action.

func AssertActionCounts

func AssertActionCounts(t *testing.T, expected map[string]int, actions []kubetesting.Action)

AssertActionCounts can count all kinds of actions and compare with expected count

func AssertActions

func AssertActions(t *testing.T, expected, actual []kubetesting.Action, ignored []VerbAndResource)

AssertActions will assert a collection of actions Some unimportant actual actions can be filtered by field "ignored"

Types

type VerbAndResource

type VerbAndResource struct {
	// Verb defines action verb
	Verb string
	// Resource defines action resource
	Resource string
}

VerbAndResource defines action verb and resource

Jump to

Keyboard shortcuts

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