verifier

package
v0.2.3 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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) *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 QATestsAllureLaunch added in v0.2.0

type QATestsAllureLaunch struct {
	IsOnlyLaunch bool   `json:"isOnlyLaunch"`
	ProjectId    string `json:"ProjectId"`
	LaunchName   string `json:"LaunchName"`
}

type QATestsOptions added in v0.2.0

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

type QATestsPytestParam added in v0.2.0

type QATestsPytestParam struct {
	Option string `json:"option"`
	Value  string `json:"value"`
}

type QATestsRequest added in v0.2.0

type QATestsRequest struct {
	BusinessProcess string               `json:"BisnessProcesses"`
	AllureLaunch    QATestsAllureLaunch  `json:"AllureLaunch"`
	Priority        int                  `json:"Priority"`
	SecsBoundary    int                  `json:"SecsBoundary"`
	Timeout         int                  `json:"Timeout"`
	Retries         int                  `json:"Retries"`
	PytestParams    []QATestsPytestParam `json:"PytestParams"`
}

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 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