Documentation
¶
Overview ¶
Package container provides functionality to test pod and container level checks.
Index ¶
- type Pod
- func (p *Pod) Args() []string
- func (p *Pod) Facts() string
- func (p *Pod) GetIdentifier() identifier.Identifier
- func (p *Pod) ReelEOF()
- func (p *Pod) ReelFirst() *reel.Step
- func (p *Pod) ReelMatch(_, _, match string) *reel.Step
- func (p *Pod) ReelTimeout() *reel.Step
- func (p *Pod) Result() int
- func (p *Pod) Timeout() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pod ¶
type Pod struct { // Command, Is the command that is executed on the test subject Command string // Name, is the name of the test subject,e.g. CNF name Name string // Namespace, is the name of the namespace the CNF 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 }
Pod that is under test.
func NewPod ¶
func NewPod(args []string, name, namespace string, expectedStatus []string, resultType testcases.TestResultType, action testcases.TestAction, timeout time.Duration) *Pod
NewPod creates a `Container` test on the configured test cases.
func (*Pod) GetIdentifier ¶
func (p *Pod) GetIdentifier() identifier.Identifier
GetIdentifier returns the tnf.Test specific identifier.
Click to show internal directories.
Click to hide internal directories.