cli

package
v0.0.0-...-520f1c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prompt

type Prompt struct {
	CmdArgs   []string
	Procedure func(*goexpect.Console) error
}

Prompt provides test utility for prompt test.

type TknHubRunner

type TknHubRunner struct {
	// contains filtered or unexported fields
}

TknHubRunner contains information about the current test execution tkn binary path under test

func NewTknHubRunner

func NewTknHubRunner() (TknHubRunner, error)

NewTknHubRunner returns details about the tkn on particular namespace

func (TknHubRunner) Assert

func (e TknHubRunner) Assert(t *testing.T, exp icmd.Expected, args ...string) *icmd.Result

Assert runs a command and verifies exit code (0)

func (TknHubRunner) MustSucceed

func (e TknHubRunner) MustSucceed(t *testing.T, args ...string) *icmd.Result

MustSucceed asserts that the command ran with 0 exit code

func (TknHubRunner) Run

func (e TknHubRunner) Run(args ...string) *icmd.Result

Run will help you execute tkn command on a specific namespace, with a timeout

func (TknHubRunner) RunInteractiveTests

func (e TknHubRunner) RunInteractiveTests(t *testing.T, ops *Prompt) *expect.Console

RunInteractiveTests helps to run interactive tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL