Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStateFilter ¶
type ClusterStateFilter struct {
// contains filtered or unexported fields
}
ClusterStateFilter filters tests based on cluster environment
func NewClusterStateFilter ¶
func NewClusterStateFilter(config *clusterdiscovery.ClusterConfiguration) *ClusterStateFilter
func (*ClusterStateFilter) Filter ¶
func (f *ClusterStateFilter) Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
func (*ClusterStateFilter) Name ¶
func (f *ClusterStateFilter) Name() string
func (*ClusterStateFilter) ShouldApply ¶
func (f *ClusterStateFilter) ShouldApply() bool
type DisabledTestsFilter ¶
type DisabledTestsFilter struct{}
DisabledTestsFilter filters out disabled tests
func (*DisabledTestsFilter) Filter ¶
func (f *DisabledTestsFilter) Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
func (*DisabledTestsFilter) Name ¶
func (f *DisabledTestsFilter) Name() string
func (*DisabledTestsFilter) ShouldApply ¶
func (f *DisabledTestsFilter) ShouldApply() bool
type KubeRebaseTestsFilter ¶
type KubeRebaseTestsFilter struct {
// contains filtered or unexported fields
}
KubeRebaseTestsFilter filters out tests during k8s rebase
func NewKubeRebaseTestsFilter ¶
func NewKubeRebaseTestsFilter(restConfig *rest.Config) *KubeRebaseTestsFilter
func (*KubeRebaseTestsFilter) Filter ¶
func (f *KubeRebaseTestsFilter) Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
func (*KubeRebaseTestsFilter) Name ¶
func (f *KubeRebaseTestsFilter) Name() string
func (*KubeRebaseTestsFilter) ShouldApply ¶
func (f *KubeRebaseTestsFilter) ShouldApply() bool
type MatchFnFilter ¶
type MatchFnFilter struct {
// contains filtered or unexported fields
}
MatchFnFilter applies a test matching function
func NewMatchFnFilter ¶
func NewMatchFnFilter(matchFn func(name string) bool) *MatchFnFilter
func (*MatchFnFilter) Filter ¶
func (f *MatchFnFilter) Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
func (*MatchFnFilter) Name ¶
func (f *MatchFnFilter) Name() string
func (*MatchFnFilter) ShouldApply ¶
func (f *MatchFnFilter) ShouldApply() bool
type QualifiersFilter ¶
type QualifiersFilter struct {
// contains filtered or unexported fields
}
QualifiersFilter filters tests based on qualifiers (CEL expressions)
func NewQualifiersFilter ¶
func NewQualifiersFilter(qualifiers []string) *QualifiersFilter
func (*QualifiersFilter) Filter ¶
func (f *QualifiersFilter) Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
Filter filters tests based on suite qualifying CEL expressions.
func (*QualifiersFilter) Name ¶
func (f *QualifiersFilter) Name() string
func (*QualifiersFilter) ShouldApply ¶
func (f *QualifiersFilter) ShouldApply() bool
type TestFilter ¶
type TestFilter interface {
// Name returns a human-readable name for this filter
Name() string
// Filter applies the filtering logic and returns the filtered tests
Filter(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
// ShouldApply returns true if this filter should be applied
ShouldApply() bool
}
TestFilter represents a single filtering step in the chain
type TestFilterChain ¶
type TestFilterChain struct {
// contains filtered or unexported fields
}
TestFilterChain manages a sequence of test filters
func NewFilterChain ¶
func NewFilterChain(logger *logrus.Entry) *TestFilterChain
NewFilterChain creates a new filter chain
func (*TestFilterChain) AddFilter ¶
func (p *TestFilterChain) AddFilter(filter TestFilter) *TestFilterChain
AddFilter adds a filter to the chain
func (*TestFilterChain) Apply ¶
func (p *TestFilterChain) Apply(ctx context.Context, tests extensions.ExtensionTestSpecs) (extensions.ExtensionTestSpecs, error)
Apply runs all filters in sequence, logging each step
Click to show internal directories.
Click to hide internal directories.