Documentation
¶
Overview ¶
Package operator provides functionality to run tests on operators.
Index ¶
- type Operator
- func (p *Operator) Args() []string
- func (p *Operator) Facts() string
- func (p *Operator) GetIdentifier() identifier.Identifier
- func (p *Operator) ReelEOF()
- func (p *Operator) ReelFirst() *reel.Step
- func (p *Operator) ReelMatch(_, _, match string) *reel.Step
- func (p *Operator) ReelTimeout() *reel.Step
- func (p *Operator) Result() int
- func (p *Operator) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator struct {
// Command, Is the command that is executed on the test subject
Command string
// Name, is the name of the test subject,e.g. Operator name
Name string
// Namespace, is the name of the namespace the operator is deployed
Namespace string
// ExpectStatus, Is the is list of expected output from the command
ExpectStatus []string
// Action, Specifies the action to ba taken on the return result
Action testcases.TestAction
// ResultType, Informs the type of result expected
ResultType testcases.TestResultType
// contains filtered or unexported fields
}
Operator that is under test.
func NewOperator ¶
func NewOperator(args []string, name, namespace string, expectedStatus []string, resultType testcases.TestResultType, action testcases.TestAction, timeout time.Duration) *Operator
NewOperator creates a `Container` test on the configured test cases.
func (*Operator) GetIdentifier ¶
func (p *Operator) GetIdentifier() identifier.Identifier
GetIdentifier returns the tnf.Test specific identifier.
func (*Operator) ReelFirst ¶
ReelFirst returns a step which expects an pod status for the given pod.
func (*Operator) ReelMatch ¶
ReelMatch parses the status output and set the test result on match. Returns no step; the test is complete.
func (*Operator) ReelTimeout ¶
ReelTimeout does nothing;
Click to show internal directories.
Click to hide internal directories.