Versions in this module Expand all Collapse all v0 v0.14.0 Mar 22, 2025 Changes in this version + const CliLabel + const ControllerLabel + const WebServiceLabel + const WebhookLabel + func ExpectKubeObject(ctx *TestContext, object ctrlclient.Object, ...) Assertion + func FromSharedScheme(ctx context.Context) *runtime.Scheme + func GetConfigFromContext(ctx context.Context) interface + func LoadKubeResourcesToCtx(ctx *TestContext, file string, ...) (err error) + func MustLoadKubeResourcesToCtx(ctx *TestContext, file string, ...) + func MustRollback(testCtx *TestContext, obj client.Object, opts ...client.DeleteOption) + func NewConfigCondition(configName string, obj interface{}) *configCondition + func NewTestConfigMap(name, namespace string, data map[string]string) *v1.ConfigMap + func ReportObjectListWithOptions(ctx *TestContext, list ctrlclient.ObjectList, opts ...ctrlclient.ListOption) + func ReportObjectsLists(ctx *TestContext, objects ...ctrlclient.ObjectList) + func ResourceTopConditionIsReadyEventually(ctx *TestContext, obj client.Object, readyFuncs ...IsReadyCheckFunc) func(g Gomega) error + func ShareScheme(scheme *runtime.Scheme) base.SharedExtension + func SharedClient() base.SharedExtension + func WaitRollback(testCtx *TestContext, obj client.Object) + func WithSharedScheme(ctx context.Context, scheme *runtime.Scheme) context.Context + type Condition interface + Condition func(testCtx *TestContext) error + func NewNamespaceCondition(ns string) Condition + type ConditionFunc func(testCtx *TestContext) error + func (c ConditionFunc) Condition(testCtx *TestContext) error + type IsReadyCheckFunc func(g Gomega, obj client.Object) error + type NamespaceCondition struct + Namespace string + func (t *NamespaceCondition) Condition(testCtx *TestContext) error + type Poller struct + Interval time.Duration + Timeout time.Duration + func (p Poller) Settings() (interval, timeout time.Duration) + type ReconcileCondition struct + func NewReconcileCondition(obj client.Object, objCheckFun func(obj client.Object) bool) *ReconcileCondition + func (n *ReconcileCondition) Condition(testCtx *TestContext) error + func (n *ReconcileCondition) WithPoller(interval, timeout time.Duration) *ReconcileCondition + type ServicePortForward struct + Namespace string + ServiceName string + ServicePortFilter func(ports []v1.ServicePort) int32 + func NewServicePortForward(ns string, serviceName string) *ServicePortForward + func (s *ServicePortForward) Close() + func (s *ServicePortForward) Forward(testCtx *TestContext) (restyClient *resty.Client, err error) + type TestCaseBuilder struct + Conditions []Condition + ObjectLists []client.ObjectList + Scheme *runtime.Scheme + Scope TestCaseScope + TestContextOptions []TestContextOption + func NewTestCaseBuilder(baseBuilder base.TestCaseBuilder) *TestCaseBuilder + func (b *TestCaseBuilder) Do() bool + func (b *TestCaseBuilder) DoFunc(f TestSpecFunc) bool + func (b *TestCaseBuilder) DoWithContext(ctx context.Context) bool + func (b *TestCaseBuilder) WithClusterScope() *TestCaseBuilder + func (b *TestCaseBuilder) WithCondition(funcs ...Condition) *TestCaseBuilder + func (b *TestCaseBuilder) WithFunc(tc TestSpecFunc) *TestCaseBuilder + func (b *TestCaseBuilder) WithNamespacedScope() *TestCaseBuilder + func (b *TestCaseBuilder) WithObjectListReport(objectList ...client.ObjectList) *TestCaseBuilder + func (b *TestCaseBuilder) WithScheme(scheme *runtime.Scheme) *TestCaseBuilder + func (b *TestCaseBuilder) WithTestContextOptions(options ...TestContextOption) *TestCaseBuilder + type TestCaseScope string + const ClusterScoped + const NamespaceScoped + type TestConfig struct + Name string + Namespace string + func NewE2EConfig(cmName string) *TestConfig + func (c *TestConfig) GetConfig(ctx context.Context, clt client.Client) (string, error) + type TestContext struct + Client client.Client + Config *rest.Config + Namespace string + Scheme *runtime.Scheme + func (ctx *TestContext) GetClient() client.Client + type TestContextOption func(*TestContext) + func NamespaceOption(ns string) TestContextOption + func NamespacePrefixOption(prefix string) TestContextOption + type TestNamespaceCondition struct + func (t *TestNamespaceCondition) Condition(testCtx *TestContext) error + type TestSpecFunc func(*TestContext)