Documentation
¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_CHECKER = "contains" DEFAULT_ORDERED = true DEFAULT_TIMEOUT = time.Duration(60) * time.Second DEFAULT_RETRYDELAY = time.Duration(1) * time.Second DEFAULT_WAIT_BEFORE_FETCH = time.Duration(5) * time.Second DEFAULT_ASSERTION_TYPE = "cel" DEFAULT_SETUP_COMMAND_TYPE = "shell" DEFAULT_POST_EXEC_CHECK_TYPE = "shell" DEFAULT_TRIGGER_TYPE = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssertionDTO ¶
type AssertionDTO struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
Queries map[string]any `yaml:"queries"`
}
func (*AssertionDTO) Validate ¶
func (a *AssertionDTO) Validate() error
type CleanupCommandDTO ¶
type ExpectedSpanDTO ¶
type ExpectedSpanDTO struct {
SpanDTO `yaml:",inline"`
MaxDuration *domain.Duration `yaml:"maxDuration"`
MinDuration *domain.Duration `yaml:"minDuration"`
}
func (*ExpectedSpanDTO) Validate ¶
func (s *ExpectedSpanDTO) Validate() error
type ExpectedTraceDTO ¶
type ExpectedTraceDTO struct {
Spans []*ExpectedSpanDTO `yaml:"spans"`
Ordered *bool `yaml:"ordered"`
Checker *string `yaml:"checker"`
}
func (*ExpectedTraceDTO) Validate ¶
func (t *ExpectedTraceDTO) Validate() error
type ExpectedTracePropertiesDTO ¶
type ExpectedTracePropertiesDTO struct {
MaxDuration *domain.Duration `yaml:"maxDuration"`
MinDuration *domain.Duration `yaml:"minDuration"`
SpanCount *int `yaml:"spanCount"`
ErrorCount *int `yaml:"errorCount"`
}
func (*ExpectedTracePropertiesDTO) Validate ¶
func (p *ExpectedTracePropertiesDTO) Validate() error
type PostExecCheckDTO ¶
type PostExecCheckDTO struct {
Name string `yaml:"name"`
Type string `yaml:"type"`
Args map[string]any `yaml:"args"`
}
func (*PostExecCheckDTO) Validate ¶
func (p *PostExecCheckDTO) Validate() error
type SetupCommandDTO ¶
type SetupCommandDTO struct {
Type string `yaml:"type"`
Cmd string `yaml:"cmd"`
Args map[string]any `yaml:"args"`
CleanupCmd *CleanupCommandDTO `yaml:"cleanupCmd"`
}
func (*SetupCommandDTO) Validate ¶
func (s *SetupCommandDTO) Validate() error
type SpanDTO ¶
type TestDTO ¶
type TestDTO struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
SetupCommands []*SetupCommandDTO `yaml:"setupCommands"`
Trigger *TriggerDTO `yaml:"trigger"`
WaitBeforeFetch *domain.Duration `yaml:"waitBeforeFetch"`
Timeout *domain.Duration `yaml:"timeout"`
RetryDelay *domain.Duration `yaml:"retryDelay"`
LastSpan *ExpectedSpanDTO `yaml:"lastSpan"`
ExpectedTraces []*ExpectedTraceDTO `yaml:"expectedTraces"`
ExpectedProperties *ExpectedTracePropertiesDTO `yaml:"expectedProperties"`
Assertions []*AssertionDTO `yaml:"assertions"`
PostExecChecks []*PostExecCheckDTO `yaml:"postExecChecks"`
FilePath string `yaml:"-"`
}
func ParseTests ¶
type TriggerDTO ¶
func (*TriggerDTO) Validate ¶
func (t *TriggerDTO) Validate() error
Click to show internal directories.
Click to hide internal directories.