it

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCondition

func AssertCondition(t *testing.T, bundle *smith_v1.Bundle, conditionType smith_v1.BundleConditionType, status smith_v1.ConditionStatus) *smith_v1.BundleCondition

func IsBundleNewerCond

func IsBundleNewerCond(namespace, name string, resourceVersions ...string) watch.ConditionFunc

func IsBundleStatusCond

func IsBundleStatusCond(namespace, name string, cType smith_v1.BundleConditionType, status smith_v1.ConditionStatus) watch.ConditionFunc

func SetupApp

func SetupApp(t *testing.T, bundle *smith_v1.Bundle, serviceCatalog, createBundle bool, test TestFunc, args ...interface{})

func SleeperScheme

func SleeperScheme() *runtime.Scheme

Types

type ItConfig

type ItConfig struct {
	T             *testing.T
	Namespace     string
	Bundle        *smith_v1.Bundle
	CreatedBundle *smith_v1.Bundle
	Config        *rest.Config
	Clientset     kubernetes.Interface
	Sc            smith.SmartClient
	BundleClient  smithClientset.Interface
}

func (*ItConfig) AssertBundle

func (cfg *ItConfig) AssertBundle(ctx context.Context, bundle *smith_v1.Bundle, resourceVersions ...string) *smith_v1.Bundle

func (*ItConfig) AssertBundleTimeout

func (cfg *ItConfig) AssertBundleTimeout(ctx context.Context, bundle *smith_v1.Bundle, resourceVersion ...string) *smith_v1.Bundle

func (*ItConfig) AwaitBundleCondition

func (cfg *ItConfig) AwaitBundleCondition(conditions ...watch.ConditionFunc) *smith_v1.Bundle

func (*ItConfig) CreateObject

func (cfg *ItConfig) CreateObject(ctxTest context.Context, obj, res runtime.Object, resourcePath string, client rest.Interface)

type TestFunc

type TestFunc func(*testing.T, context.Context, *ItConfig, ...interface{})

Jump to

Keyboard shortcuts

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