Documentation
¶
Overview ¶
Package config provides testing helpers for Traffic Ops API tests.
Index ¶
Constants ¶
View Source
const ( BadAssignmentMatch = iota + 1 NotEnoughAssignments ExcessLabel InvalidLabel MissingLabel InvalidAction InvalidBool InvalidCacheCookieResponse InvalidHTTPScheme InvalidHost InvalidIP UnknownMethod InvalidIPRange InvalidPort InvalidRegex InvalidTimeFormatDHMS InvalidTimeRange24Hr )
Error codes:
Variables ¶
View Source
var ErrorContext *test.ErrorContext
ErrorContext contains the error codes mentioned above. Any error made must have one of those error codes.
Functions ¶
func Validate24HrTimeRange ¶
Validate24HrTimeRange determines whether the provided string fits in a format such as "08:00-16:00".
func ValidateDHMSTimeFormat ¶
ValidateDHMSTimeFormat determines whether the provided string fits in a format such as "1d8h", where the valid units are days, hours, minutes, and seconds.
Types ¶
type NegativeTest ¶
NegativeTest is a struct for table tests.
Source Files
¶
- common.go
- error.go
- table_test_structs.go
Click to show internal directories.
Click to hide internal directories.