sippy

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SippyAPI

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

SippyAPI is the Sippy API structure holding the API client

func NewSippyAPI

func NewSippyAPI(ocpVersion string) *SippyAPI

NewSippyAPI creates a new API setting the http attributes to improve the connection reuse.

func (*SippyAPI) QueryTests

QueryTests receive a input with attributes to query the results of a single test by name on the CI, returning the list with result items.

type SippyTestsRequestFilter

type SippyTestsRequestFilter struct {
	// Example: {"items":[{"columnField":"name","operatorValue":"equals","value":"test_name"}]}
	Items []SippyTestsRequestFilterItems `json:"items"`
}

SippyTestsRequestFilter is the filter structure to the Sippy query to /tests

type SippyTestsRequestFilterItems

type SippyTestsRequestFilterItems struct {
	ColumnField   string `json:"columnField"`
	OperatorValue string `json:"operatorValue"`
	Value         string `json:"value"`
}

SippyTestsRequestFilterItems is the filter parameters

type SippyTestsRequestInput

type SippyTestsRequestInput struct {
	TestName string
	Release  string
	Filter   SippyTestsRequestFilter
}

type SippyTestsRequestOutput

type SippyTestsRequestOutput []SippyTestsResponse

SippyTestsRequestOutput is the payload returned by the API endpoint /tests

type SippyTestsResponse

type SippyTestsResponse struct {
	Name               string  `json:"name"`
	CurrentFailures    int64   `json:"current_failures"`
	CurrentFlakes      int64   `json:"current_flakes"`
	CurrentRuns        int64   `json:"current_runs"`
	CurrentPassPerc    float64 `json:"current_pass_percentage"`
	CurrentFlakePerc   float64 `json:"current_flake_percentage"`
	CurrentWorkingPerc float64 `json:"current_working_percentage"`
	PreviousFailures   int64   `json:"previous_failures"`
	PreviousFlakes     int64   `json:"previous_flakes"`
}

SippyTestsResponse is the payload item returned by the API endpoint /tests

Jump to

Keyboard shortcuts

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