crudtester

package
v1.9.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0 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

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