Documentation ¶
Index ¶
- type Kubectl
- type Prompt
- type TknRunner
- func (e TknRunner) Assert(t *testing.T, exp icmd.Expected, args ...string) *icmd.Result
- func (e TknRunner) CheckVersion(t *testing.T, component string, version string) bool
- func (e TknRunner) MustSucceed(t *testing.T, args ...string) *icmd.Result
- func (e TknRunner) Path() string
- func (e TknRunner) Run(t *testing.T, args ...string) *icmd.Result
- func (e TknRunner) RunInteractiveTests(t *testing.T, ops *Prompt) *expect.Console
- func (e TknRunner) RunNoNamespace(t *testing.T, args ...string) *icmd.Result
- func (e TknRunner) RunWithOption(t *testing.T, option icmd.CmdOp, args ...string) *icmd.Result
- func (e TknRunner) TknNamespace() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
Kubectl type
func (Kubectl) MustSucceed ¶
MustSucceed asserts that the command ran with 0 exit code
type TknRunner ¶
type TknRunner struct {
// contains filtered or unexported fields
}
TknRunner contains information about the current test execution tkn binary path under test
func NewTknRunner ¶
NewTknRunner returns details about the tkn on particular namespace
func (TknRunner) CheckVersion ¶
TODO: Re-write this to just get the version of Tekton components through tkn version as described in https://github.com/tektoncd/cli/issues/1067
func (TknRunner) MustSucceed ¶
MustSucceed asserts that the command ran with 0 exit code
func (TknRunner) Run ¶
Run will help you execute tkn command on a specific namespace, with a timeout
func (TknRunner) RunInteractiveTests ¶
RunInteractiveTests helps to run interactive tests.
func (TknRunner) RunNoNamespace ¶
RunNoNamespace will help you execute tkn command without namespace, with a timeout
func (TknRunner) RunWithOption ¶
RunWithOption will help you execute tkn command with namespace, cmd option
func (TknRunner) TknNamespace ¶
TknNamespace returns the current Namespace