Documentation ¶
Index ¶
- func AssertContains(t *testing.T, s, contains interface{})
- func AssertEqualError(t *testing.T, theError error, errString string)
- func AssertError(t *testing.T, err error)
- func AssertNil(t *testing.T, object interface{})
- func AssertNoError(t *testing.T, err error)
- func AssertNotContains(t *testing.T, s, contains interface{})
- func AssertServiceBindingCondition(t *testing.T, binding *v1beta1.ServiceBinding, ...)
- func AssertServiceInstanceCondition(t *testing.T, instance *v1beta1.ServiceInstance, ...)
- func AssertServiceInstanceConditionFalseOrAbsent(t *testing.T, instance *v1beta1.ServiceInstance, ...)
- func ContextWithUserName(userName string) context.Context
- func EnableOriginatingIdentity(t *testing.T, enabled bool) (previousState bool)
- func ObjectsAreEqual(expected, actual interface{}) bool
- func WaitForBindingCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) (*v1beta1.ServiceBindingCondition, error)
- func WaitForBindingReconciledGeneration(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) error
- func WaitForBindingToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) error
- func WaitForBrokerCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
- func WaitForBrokerToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
- func WaitForInstanceCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) error
- func WaitForInstanceProcessedGeneration(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) error
- func WaitForInstanceToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, ...) error
- func WaitForServiceClassToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
- func WaitForServiceClassToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
- func WaitForServicePlanToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
- func WaitForServicePlanToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContains ¶ added in v0.1.0
AssertContains asserts that the specified string, list(array, slice...) or map contains the specified substring or element.
func AssertEqualError ¶ added in v0.1.0
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 v0.1.0
AssertError asserts that a function returned an error (i.e. not `nil`).
func AssertNoError ¶ added in v0.1.0
AssertNoError asserts that a function returned no error (i.e. `nil`).
func AssertNotContains ¶ added in v0.1.0
AssertNotContains asserts that the specified string, list(array, slice...) or map does NOT contain the specified substring or element.
func AssertServiceBindingCondition ¶ added in v0.1.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 v0.1.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 AssertServiceInstanceConditionFalseOrAbsent ¶ added in v0.1.31
func AssertServiceInstanceConditionFalseOrAbsent(t *testing.T, instance *v1beta1.ServiceInstance, conditionType v1beta1.ServiceInstanceConditionType)
AssertServiceInstanceConditionFalseOrAbsent asserts that the instance's status either contains the given condition type with a status of False or does not contain the given condition.
func ContextWithUserName ¶ added in v0.1.31
ContextWithUserName creates a Context with the specified userName
func EnableOriginatingIdentity ¶ added in v0.1.31
EnableOriginatingIdentity enables the OriginatingIdentity feature gate. Returns the prior state of the gate.
func ObjectsAreEqual ¶ added in v0.1.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) (*v1beta1.ServiceBindingCondition, error)
WaitForBindingCondition waits for the status of the named binding to contain a condition whose type and status matches the supplied one and then returns back the last binding condition of the same type requested during polling if found.
func WaitForBindingReconciledGeneration ¶ added in v0.1.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 ¶
func WaitForBrokerCondition(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, condition v1beta1.ServiceBrokerCondition, namespace ...string) error
WaitForBrokerCondition waits for the status of the named broker to contain a condition whose type and status matches the supplied one. Checks for a ClusterServiceBroker by default, a ServiceBroker if a namespace is provided
func WaitForBrokerToNotExist ¶
func WaitForBrokerToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, namespace ...string) error
WaitForBrokerToNotExist waits for the Broker with the given name to no longer exist. Checks for ClusterServiceBrokers by default, ServiceBrokers if a namespace is provided
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 WaitForInstanceProcessedGeneration ¶ added in v0.1.31
func WaitForInstanceProcessedGeneration(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, namespace, name string, processedGeneration int64) error
WaitForInstanceProcessedGeneration 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.
func WaitForServiceClassToExist ¶
func WaitForServiceClassToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, namespace ...string) error
WaitForServiceClassToExist waits for the ServiceClass with the given name to exist. Checks for a ClusterServiceClass by default, a ServiceClass if a namespace is provided
func WaitForServiceClassToNotExist ¶
func WaitForServiceClassToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, namespace ...string) error
WaitForServiceClassToNotExist waits for the class with the given name to no longer exist. Looks for ClusterServiceClasses by default, ServiceClasses if a namespace is provided
func WaitForServicePlanToExist ¶ added in v0.1.43
func WaitForServicePlanToExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, namespace ...string) error
WaitForServicePlanToExist waits for the ServicePlan with the given name to exist. Checks for ClusterServicePlans by default, ServicePlans if a namespace is provided
func WaitForServicePlanToNotExist ¶ added in v0.1.43
func WaitForServicePlanToNotExist(client v1beta1servicecatalog.ServicecatalogV1beta1Interface, name string, namespace ...string) error
WaitForServicePlanToNotExist waits for the plan with the given name to not exist. Looks for ClusterServicePlans by default, ServicePlans if a namespace is provided
Types ¶
This section is empty.