Versions in this module Expand all Collapse all v0 v0.0.310 Jun 15, 2022 Changes in this version + func DeleteNamespace(c client.Client, namespace string) error + func EnsureNamespace(c client.Client, namespace string) error + func GetLogOfPod(rest *rest.RESTClient, namespace, name string, ...) error + func WaitForController(c client.Client, namespace, name string, replica int32, ...) error + func WaitForDeletion(dynclient client.Client, obj runtime.Object, ...) error + func WaitForJobFail(c client.Client, namespace, name string, retryInterval, timeout time.Duration) error + func WaitForJobSucceed(c client.Client, namespace, name string, retryInterval, timeout time.Duration) error + type AddToSchemeFunc = func(*runtime.Scheme) error + type CleanupOptions struct + RetryInterval time.Duration + TestContext *TestCtx + Timeout time.Duration + type Scanner struct + func NewYAMLScanner(b []byte) *Scanner + func (s *Scanner) Bytes() []byte + func (s *Scanner) Err() error + func (s *Scanner) Scan() bool + func (s *Scanner) Text() string + type TestCtx struct + Client client.Client + ID string + Namespace string + func NewTestCtx(t *testing.T, namespace string) *TestCtx + func (ctx *TestCtx) AddCleanupFn(fn cleanupFn) + func (ctx *TestCtx) Cleanup(option *CleanupOptions) + func (ctx *TestCtx) CreateFromYAML(yamlFile []byte, skipIfExists bool) error + func (ctx *TestCtx) GetID() string + func (t *TestCtx) Setup(yamlPath string, crdPath string, schemes ...AddToSchemeFunc) error