Documentation ¶
Overview ¶
Test utils provides util functions for gold cmd packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateServiceConfigs ¶
func ValidateServiceConfigs(serviceName string, instances InstanceCategory, configObj interface{}) error
ValidateServiceConfigs validates the instance configs in the repository to ensure that services are able to load them. This protects against service failures due to invalid/missing config values in production. Configs can be optional for instances, hence we require the list of instances to check for.
Types ¶
type InstanceCategory ¶
type InstanceCategory []string
var AllInstances InstanceCategory = append(MirrorInstances, PrimaryInstances...)
Union of all instances.
var MirrorInstances InstanceCategory = []string{
"chrome-public",
"skia-public",
}
List of mirror instances for Gold.
var PrimaryInstances InstanceCategory = []string{
"angle",
"chrome",
"cros-tast",
"eskia",
"flutter",
"flutter-engine",
"koru",
"lottie",
"lottie-spec",
"pdfium",
"skia",
"skia-infra",
}
List of primary instances for Gold.
Click to show internal directories.
Click to hide internal directories.