func NewGCERunner(cfg remote.Config) remote.Runner
Accelerator contains type and count about resource.
type Accelerator struct { Type string `json:"type,omitempty"` Count int64 `json:"count,omitempty"` }
GCEImage contains some information about GCE Image.
type GCEImage struct { Image string `json:"image,omitempty"` ImageRegex string `json:"image_regex,omitempty"` // ImageFamily is the image family to use. The latest image from the image family will be used, e.g cos-81-lts. ImageFamily string `json:"image_family,omitempty"` ImageDesc string `json:"image_description,omitempty"` KernelArguments []string `json:"kernel_arguments,omitempty"` Project string `json:"project"` Metadata string `json:"metadata"` Machine string `json:"machine,omitempty"` Resources Resources `json:"resources,omitempty"` }
GCEImageConfig specifies what images should be run and how for these tests. It can be created via the `--images` and `--image-project` flags, or by specifying the `--image-config-file` flag, pointing to a json or yaml file of the form:
images: short-name: image: gce-image-name project: gce-image-project machine: for benchmark only, the machine type (GCE instance) to run test tests: for benchmark only, a list of ginkgo focus strings to match tests
TODO(coufon): replace 'image' with 'node' in configurations and we plan to support testing custom machines other than GCE by specifying Host
type GCEImageConfig struct { Images map[string]GCEImage `json:"images"` }
type GCERunner struct {
// contains filtered or unexported fields
}
func (g *GCERunner) DeleteGCEInstance(host string)
func (g *GCERunner) StartTests(suite remote.TestSuite, archivePath string, results chan *remote.TestResult) (numTests int)
func (g *GCERunner) Validate() error
Resources contains accelerators array.
type Resources struct { Accelerators []Accelerator `json:"accelerators,omitempty"` }