verifier

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const CatchpointVerifierName = "Catchpoint"
View Source
const HttpVerifierName = "Config"
View Source
const QATestsEndpoint = "/run_tests_sync"
View Source
const QATestsVerifierName = "QATests"
View Source
const RandomVerifierName = "Random"
View Source
const Site24x7VerifierName = "Site24x7"

Variables

This section is empty.

Functions

This section is empty.

Types

type Catchpoint added in v0.0.3

type Catchpoint struct {
	// contains filtered or unexported fields
}

func NewCatchpoint added in v0.0.3

func NewCatchpoint(options *CatchpointOptions, observability *common.Observability) *Catchpoint

func (*Catchpoint) Name added in v0.0.3

func (c *Catchpoint) Name() string

func (*Catchpoint) Verify added in v0.0.3

type CatchpointOptions added in v0.0.3

type CatchpointOptions struct {
	vendors.CatchpointOptions
	vendors.CatchpointSearchNodesWithOptions
	TestID             string
	PollTimeout        int
	PollDelay          int
	InstantTestType    int
	HTTPMethodType     int
	MonitorType        int
	ResponseReportFile string
}

type CatchpointSummary added in v0.0.3

type CatchpointSummary struct {
	Country string
	Avg     float64
	Flags   map[common.VerifyStatusFlag]bool
}

type Http

type Http struct {
	// contains filtered or unexported fields
}

func NewHttp

func NewHttp(options *HttpOptions, observability *common.Observability) *Http

func (*Http) Name

func (h *Http) Name() string

func (*Http) Verify

func (h *Http) Verify(or *common.ObserveResult) (*common.VerifyResult, error)

type HttpOptions

type HttpOptions struct {
	URL string
}

type QATask added in v0.2.0

type QATask struct {
	TaskID string         `json:"task_id"`
	Status string         `json:"status"`
	Allure []QATaskAllure `json:"allure"`
	Result QATaskResult   `json:"result"`
}

type QATaskAllure added in v0.2.0

type QATaskAllure struct {
	LaunchId   string `json:"launch_id"`
	AllureLink string `json:"allure_link"`
}

type QATaskResult added in v0.2.0

type QATaskResult struct {
	Created  float64       `json:"created"`
	Duration float64       `json:"duration"`
	ExitCode int           `json:"exitcode"`
	Summary  QATestSummary `json:"summary"`
	Test     QATest        `json:"test"`
}

type QATest added in v0.2.0

type QATest struct {
	Duration   float64  `json:"duration"`
	Scenario   string   `json:"scenario"`
	FailedStep string   `json:"failed_step"`
	Keywords   []string `json:"keywords"`
	Outcome    string   `json:"outcome"`
	PytestName string   `json:"pytest_name"`
}

type QATestSummary added in v0.2.0

type QATestSummary struct {
	Passed     int `json:"passed"`
	Total      int `json:"total"`
	Collected  int `json:"collected"`
	Deselected int `json:"deselected"`
}

type QATests added in v0.2.0

type QATests struct {
	// contains filtered or unexported fields
}

func NewQATests added in v0.2.0

func NewQATests(options *QATestsOptions, observability *common.Observability, metrics *common.VerifierMetrics) *QATests

func (*QATests) Name added in v0.2.0

func (q *QATests) Name() string

func (*QATests) Verify added in v0.2.0

func (q *QATests) Verify(or *common.ObserveResult) (*common.VerifyResult, error)

type QATestsOptions added in v0.2.0

type QATestsOptions struct {
	URL              string
	Timeout          int
	Insecure         bool
	BusinessProcess  string
	AllureProjectId  string
	AllureLaunchName string
	AllureLaunchTags []string
	Priority         int
	SecsBoundary     int
	TestTimeout      int
	TestRetries      int
}

type QATestsPytestParams added in v0.2.4

type QATestsPytestParams struct {
	Timeout      int    `json:"Timeout"`
	Retries      int    `json:"Retries"`
	Host         string `json:"Host"`
	ProxyCountry string `json:"ProxyCountry"`
}

type QATestsRequest added in v0.2.0

type QATestsRequest struct {
	BusinessProcess string              `json:"BisnessProcesses"`
	PytestParams    QATestsPytestParams `json:"PytestParams"`
	TaskParams      QATestsTaskParams   `json:"TaskParams"`
}

type QATestsResponse added in v0.2.0

type QATestsResponse struct {
	Allure interface{} `json:"allure"`
	Tasks  []QATask    `json:"tasks"`
}

type QATestsSummary added in v0.2.0

type QATestsSummary struct {
	Country string
	Avg     float64
	Flags   map[common.VerifyStatusFlag]bool
}

type QATestsTaskParams added in v0.2.4

type QATestsTaskParams struct {
	AllureForceNewLaunch bool     `json:"AllureForceNewLaunch"`
	AllureProjectId      string   `json:"AllureProjectId"`
	AllureLaunchName     string   `json:"AllureLaunchName"`
	AllureLaunchTags     []string `json:"AllureLaunchTags"`
	Priority             int      `json:"Priority"`
	SecsBoundary         int      `json:"SecsBoundary"`
}

type Random

type Random struct {
	// contains filtered or unexported fields
}

func NewRandom

func NewRandom(options *RandomOptions, observability *common.Observability) *Random

func (*Random) Name

func (rd *Random) Name() string

func (*Random) Verify

func (rd *Random) Verify(or *common.ObserveResult) (*common.VerifyResult, error)

type RandomOptions

type RandomOptions struct {
	Min   float64
	Max   float64
	Delay int
}

type Site24x7

type Site24x7 struct {
	// contains filtered or unexported fields
}

func NewSite24x7

func NewSite24x7(options *Site24x7Options, observability *common.Observability) *Site24x7

func (*Site24x7) Name

func (s *Site24x7) Name() string

func (*Site24x7) Verify

type Site24x7Options

type Site24x7Options struct {
	vendors.Site24x7Options
	MonitorName           string
	MonitorFrequency      string
	MonitorTimeout        int
	HttpMethod            string
	HttpUserAgent         string
	NotificationProfileID string
	ThresholdProfileID    string
	UserGroupIDs          []string
	PollTimeout           int
	PollDelay             int
	LogReportFile         string
}

type Site24x7Summary

type Site24x7Summary struct {
	Country string
	Avg     float64
	Flags   map[common.VerifyStatusFlag]bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL