Documentation
¶
Index ¶
Constants ¶
const CITimeoutMultiplier = 3
CITimeoutMultiplier is the multiplier for all timeout in the CI.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseCondition ¶
ResponseCondition is a retry condition function. It receives a response, and returns an error if the response failed the condition.
func BodyContains ¶
func BodyContains(values ...string) ResponseCondition
BodyContains returns a retry condition function. The condition returns an error if the request body does not contain all the given strings.
func StatusCodeIs ¶
func StatusCodeIs(status int) ResponseCondition
StatusCodeIs returns a retry condition function. The condition returns an error if the given response's status code is not the given HTTP status code.
type StringCondition ¶
StringCondition is a retry condition function. It receives a string, and returns an error if the string failed the condition.
func StringContains ¶
func StringContains(values ...string) StringCondition
StringContains returns a retry condition function. The condition returns an error if the string does not contain the given values.