in testworkflow.go [845:863]
func ValidateTests(ctx context.Context, storageClient *storage.Client, testWorkflows []*TestWorkflow, project, zone, gcsPath, localPath string) error {
gcsPrefix, err := getGCSPrefix(ctx, storageClient, project, gcsPath)
if err != nil {
return err
}
if err := finalizeWorkflows(ctx, testWorkflows, zone, gcsPrefix, localPath); err != nil {
return err
}
for _, test := range testWorkflows {
log.Printf("Validating test %s on image %s\n", test.Name, test.Image.Name)
if test.wf == nil {
return fmt.Errorf("%s test on image %s: workflow was nil", test.Name, test.Image.Name)
}
if err := test.wf.Validate(ctx); err != nil {
return err
}
}
return nil
}