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 ¶
NewSippyAPI creates a new API setting the http attributes to improve the connection reuse.
func (*SippyAPI) QueryTests ¶
func (a *SippyAPI) QueryTests(in *SippyTestsRequestInput) (*SippyTestsRequestOutput, error)
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
Click to show internal directories.
Click to hide internal directories.