Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrUnmatchedRegexp regular expression doesn't match any results. ErrUnmatchedRegexp = errors.New("unmatched regexp") // ErrStepFailed indicates one or more steps (status condition) failed. ErrStepFailed = errors.New("failed step") )
var ErrUnsupportedGV = errors.New("unsupported resource group-version")
ErrUnsupportedGV the resource group version informed (subject) is not supported.
Functions ¶
This section is empty.
Types ¶
type Assert ¶
type Assert interface { // Status asserts the instance status conditions. Status() error // Results asserts the instance results against the slice of regular expressions. Results(_ []regexp.Regexp) error }
Assert defines the Assert role, responsible for asserting the final status of the different type of resources asserted by this application.
type PipelineRunAssert ¶
type PipelineRunAssert struct {
// contains filtered or unexported fields
}
PipelineRunAssert asserts the elements of a PipelineRun instance.
func NewPipelineRunAssert ¶
func NewPipelineRunAssert( ctx context.Context, cfg *config.Config, subject *probe.Subject, ) (*PipelineRunAssert, error)
NewPipelineRunAssert instantiates the PipelineRunAssert with a up-to-date PipelineRun instance and the children TaskRun statuses.
func (*PipelineRunAssert) Results ¶
func (a *PipelineRunAssert) Results(rules []regexp.Regexp) error
Results asserts the PipelineRun children TaskRun instances.
func (*PipelineRunAssert) Status ¶
func (a *PipelineRunAssert) Status() error
Status asserts the instance status conditions.
type TaskRunAssert ¶
type TaskRunAssert struct {
// contains filtered or unexported fields
}
TaskRunAssert asserts a TaskRun instance.
func NewTaskRunAssert ¶
NewTaskRunAssert instantiate the TaskRunAssert by loading the TaskRun (subject) resource.
func (*TaskRunAssert) Results ¶
func (a *TaskRunAssert) Results(rules []regexp.Regexp) error
Results asserts the TaskRun results against the informed regular expressions.
func (*TaskRunAssert) Status ¶
func (a *TaskRunAssert) Status() error
Status assert the TaskRun status conditions.