util

package
v3.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 License: Apache-2.0, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertContains added in v3.7.0

func AssertContains(t *testing.T, s, contains interface{})

AssertContains asserts that the specified string, list(array, slice...) or map contains the specified substring or element.

func AssertEqualError added in v3.7.0

func AssertEqualError(t *testing.T, theError error, errString string)

AssertEqualError asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error.

func AssertError added in v3.7.0

func AssertError(t *testing.T, err error)

AssertError asserts that a function returned an error (i.e. not `nil`).

func AssertNil added in v3.7.0

func AssertNil(t *testing.T, object interface{})

AssertNil asserts that the specified object is nil.

func AssertNoError added in v3.7.0

func AssertNoError(t *testing.T, err error)

AssertNoError asserts that a function returned no error (i.e. `nil`).

func AssertNotContains added in v3.7.0

func AssertNotContains(t *testing.T, s, contains interface{})

AssertNotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.

func AssertServiceBindingCondition added in v3.7.0

func AssertServiceBindingCondition(t *testing.T, binding *v1beta1.ServiceBinding, conditionType v1beta1.ServiceBindingConditionType, status v1beta1.ConditionStatus, reason ...string)

AssertServiceBindingCondition asserts that the binding's status contains the given condition type, status, and reason.

func AssertServiceInstanceCondition added in v3.7.0

func AssertServiceInstanceCondition(t *testing.T, instance *v1beta1.ServiceInstance, conditionType v1beta1.ServiceInstanceConditionType, status v1beta1.ConditionStatus, reason ...string)

AssertServiceInstanceCondition asserts that the instance's status contains the given condition type, status, and reason.

func ObjectsAreEqual added in v3.7.0

func ObjectsAreEqual(expected, actual interface{}) bool

ObjectsAreEqual determines if two objects are considered equal.

This function does no assertion of any kind.

func WaitForBindingCondition

func WaitForBindingCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string, condition v1beta1.ServiceBindingCondition) error

WaitForBindingCondition waits for the status of the named binding to contain a condition whose type and status matches the supplied one.

func WaitForBindingReconciledGeneration added in v3.7.0

func WaitForBindingReconciledGeneration(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string, reconciledGeneration int64) error

WaitForBindingReconciledGeneration waits for the status of the named binding to have the specified reconciled generation.

func WaitForBindingToNotExist

func WaitForBindingToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string) error

WaitForBindingToNotExist waits for the Binding with the given name to no longer exist.

func WaitForBrokerCondition

WaitForBrokerCondition waits for the status of the named broker to contain a condition whose type and status matches the supplied one.

func WaitForBrokerToNotExist

func WaitForBrokerToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string) error

WaitForBrokerToNotExist waits for the Broker with the given name to no longer exist.

func WaitForClusterServiceClassToExist added in v3.7.0

func WaitForClusterServiceClassToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string) error

WaitForClusterServiceClassToExist waits for the ClusterServiceClass with the given name to exist.

func WaitForClusterServiceClassToNotExist added in v3.7.0

func WaitForClusterServiceClassToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string) error

WaitForClusterServiceClassToNotExist waits for the ClusterServiceClass with the given name to no longer exist.

func WaitForClusterServicePlanToExist added in v3.7.0

func WaitForClusterServicePlanToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string) error

WaitForClusterServiceClassToExist waits for the ClusterServiceClass with the given name to exist.

func WaitForClusterServicePlanToNotExist added in v3.7.0

func WaitForClusterServicePlanToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string) error

WaitForClusterServicePlanToNotExist waits for the ClusterServicePlan with the given name to not exist.

func WaitForInstanceCondition

func WaitForInstanceCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string, condition v1beta1.ServiceInstanceCondition) error

WaitForInstanceCondition waits for the status of the named instance to contain a condition whose type and status matches the supplied one.

func WaitForInstanceReconciledGeneration added in v3.7.0

func WaitForInstanceReconciledGeneration(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string, reconciledGeneration int64) error

WaitForInstanceReconciledGeneration waits for the status of the named instance to have the specified reconciled generation.

func WaitForInstanceToNotExist

func WaitForInstanceToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string) error

WaitForInstanceToNotExist waits for the Instance with the given name to no longer exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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