crudtester

package
v1.5.0-alpha.0....-41f928f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationTestFederationCRUDUpdate string = "federation.kubernetes.io/test-federation-crud-update"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FederatedTypeCRUDTester

type FederatedTypeCRUDTester struct {
	// contains filtered or unexported fields
}

FederatedTypeCRUDTester exercises Create/Read/Update/Delete operations for federated types via the Federation API and validates that the results of those operations are propagated to clusters that are members of a federation.

func NewFederatedTypeCRUDTester

func NewFederatedTypeCRUDTester(testLogger TestLogger, adapter federatedtypes.FederatedTypeAdapter, clusterClients []clientset.Interface, waitInterval, clusterWaitTimeout time.Duration) *FederatedTypeCRUDTester

func (*FederatedTypeCRUDTester) CheckCreate

func (c *FederatedTypeCRUDTester) CheckCreate(desiredObject pkgruntime.Object) pkgruntime.Object

func (*FederatedTypeCRUDTester) CheckDelete

func (c *FederatedTypeCRUDTester) CheckDelete(obj pkgruntime.Object, orphanDependents *bool)

func (*FederatedTypeCRUDTester) CheckLifecycle

func (c *FederatedTypeCRUDTester) CheckLifecycle(desiredObject pkgruntime.Object)

func (*FederatedTypeCRUDTester) CheckPropagation

func (c *FederatedTypeCRUDTester) CheckPropagation(obj pkgruntime.Object)

CheckPropagation checks propagation for the crud tester's clients

func (*FederatedTypeCRUDTester) CheckPropagationForClients

func (c *FederatedTypeCRUDTester) CheckPropagationForClients(obj pkgruntime.Object, clusterClients []clientset.Interface, objExpected bool)

CheckPropagationForClients checks propagation for the provided clients

func (*FederatedTypeCRUDTester) CheckUpdate

func (c *FederatedTypeCRUDTester) CheckUpdate(obj pkgruntime.Object)

func (*FederatedTypeCRUDTester) Create

func (c *FederatedTypeCRUDTester) Create(desiredObject pkgruntime.Object) pkgruntime.Object

type TestLogger

type TestLogger interface {
	Fatalf(format string, args ...interface{})
	Fatal(msg string)
	Logf(format string, args ...interface{})
}

TestLogger defines operations common across different types of testing

Jump to

Keyboard shortcuts

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