# Functions
ConvertToAuthSecret convert auth.
ExpectKubeObject expect kubernetes resource exists by object.name and object.namespace, clean some fields in object and return gomega.Expect for this object.
FromSharedScheme get scheme from context.
GetConfigFromContext get the config information from context.
GetPluginAddress get the base url of the plugin.
LoadKubeResourcesToCtx will load kubernetes resources from file it will use client in ctx and set namespace as ctx.Namespace if namespace is empty in file if you set namespace in file, it will just use it and ignore ctx.Namespace you can set converts to change some extra fields before create in kubernetes but you must pay attention to that when you set more than one converts: just one converts will be executed when match if you set converts , you should set namespace to ctx.Namespace explicitly eg.
MustGetPluginAddress get the base url or panics if the parse fails.
MustLoadKubeResourcesToCtx similar with LoadKubeResources but panic if LoadKubeResources error.
MustRollback delete an object and wait for completion.
NamespaceOption customize the namespace name.
NamespacePrefixOption customize the prefix of the namespace name.
NewConfigCondition construct an configCondition object `obj` is a pointer which used to unmarshal configuration to.
NewE2EConfig construct a `TestConfig` with special configmap name.
NewNamespaceCondition construct a namespace condition.
NewReconcileCondition helper function for constructing a `ReconcileCondition` object.
NewServicePortForward construct a new ServicePortForward object.
No description provided by the author
NewTestConfigMap helper function for constructing a new configmap.
PluginService Get plugin service by plugin name.
ReportObjectListWithOptions dumps the provided object list into the current Ginkgo spec report if the test case has failed.
ReportObjectsLists will dump objects into Current Ginkgo Report when test case failed.
RequestWrapAuthMeta wrap auth and meta information into http request.
ResourceTopConditionIsReadyEventually generic function to check if a resource is ready resource type must implement GetTopLevelCondition() *apis.Condition function.
SharedClient to construct extension to share client.
ShareScheme to construct extension to share scheme.
WaitRollback Wait for the delete object behavior to complete.
WithSharedScheme wrap scheme into context.
# Constants
No description provided by the author
ClusterScoped cluster test case scope.
No description provided by the author
NamespaceScoped test case scoped for a Namespace.
No description provided by the author
No description provided by the author
# Structs
NamespaceCondition generate namespace for testing.
Poller describe the configuration of Poller Interval: Indicates the inspection interval Timeout: Indicates the maximum time the check will last.
ReconcileCondition check if a controller is available.
ServicePortForward describe the configuration of port forwarding.
No description provided by the author
TestConfig Provide a unified way to get configuration from configmap.
TestContext context for cluster testing.
TestNamespaceCondition generate namespace for testing.
# Interfaces
No description provided by the author
# Type aliases
ConditionFunc helper function to wrapping condition.
IsReadyCheckFunc additional function to check if object is ready in an Eventually context example:
```
func(g Gomega, obj client.Object) error {
if obj.GetName() == "" {
fmt.Errorf("should have a name")
}
// or use g.Expect instead
g.Expect(obj.GetName()).To(Equal(""))
return nil
}
```
*/.
TestCaseScope scope for test case.
TestContextOption options for building TestContext.
No description provided by the author