Documentation
¶
Index ¶
- type Context
- func (c *Context) AppNamespace() string
- func (c *Context) Config() *config.Config
- func (c *Context) Context() context.Context
- func (c *Context) Deploy(dt *testing.T)
- func (c *Context) Deployer() types.Deployer
- func (c *Context) Disable(dt *testing.T)
- func (c *Context) Enable(dt *testing.T)
- func (c *Context) Env() *types.Env
- func (c *Context) Failover(dt *testing.T)
- func (c *Context) Logger() *zap.SugaredLogger
- func (c *Context) ManagementNamespace() string
- func (c *Context) Name() string
- func (c *Context) Relocate(dt *testing.T)
- func (c *Context) Undeploy(dt *testing.T)
- func (c *Context) Validate() error
- func (c Context) WithTimeout(d time.Duration) (*Context, context.CancelFunc)
- func (c *Context) Workload() types.Workload
- type T
- func (t *T) Error(msg string)
- func (t *T) Errorf(format string, args ...any)
- func (t *T) Fatal(msg string)
- func (t *T) Fatalf(format string, args ...any)
- func (t *T) Log(msg string)
- func (t *T) Logf(format string, args ...any)
- func (t *T) Skip(msg string)
- func (t *T) Skipf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewContext ¶
func (*Context) AppNamespace ¶
func (*Context) Logger ¶
func (c *Context) Logger() *zap.SugaredLogger
func (*Context) ManagementNamespace ¶
func (*Context) Validate ¶
Validated return an error if the combination of deployer and workload is not supported. TODO: validate that the deployer/workload is compatible with the clusters.
func (Context) WithTimeout ¶
WithTimeout returns a derived context with a deadline. Call cancel to release resources associated with the context as soon as the operation running in the context complete.
type T ¶
T extends testing.T to use a custom logger.
func WithLog ¶
func WithLog(t *testing.T, log *zap.SugaredLogger) *T
WithLog returns a t wrapped with a specified log.
func (*T) Fatalf ¶
Fatalf writes a formatted error message to the log and fail the text immediately.
Click to show internal directories.
Click to hide internal directories.