varsetupNode=flag.Bool("setup-node",false,"When true, current user will be added to docker group on the test machine")
varsetupNode=flag.Bool("setup-node",false,"When true, current user will be added to docker group on the test machine")
varinstanceMetadata=flag.String("instance-metadata","","key/value metadata for instances separated by '=' or '<', 'k=v' means the key is 'k' and the value is 'v'; 'k<p' means the key is 'k' and the value is extracted from the local path 'p', e.g. k1=v1,k2<p2")
varinstanceMetadata=flag.String("instance-metadata","","key/value metadata for instances separated by '=' or '<', 'k=v' means the key is 'k' and the value is 'v'; 'k<p' means the key is 'k' and the value is extracted from the local path 'p', e.g. k1=v1,k2<p2")
vargubernator=flag.Bool("gubernator",false,"If true, output Gubernator link to view logs")
vargubernator=flag.Bool("gubernator",false,"If true, output Gubernator link to view logs")
varginkgoFlags=flag.String("ginkgo-flags","","Passed to ginkgo to specify additional flags such as --skip=.")
varcomputeService*compute.Service
const(
defaultMachine="n1-standard-1"
)
var(
computeService*compute.Service
arcArchive
)
typeArchivestruct{
typeArchivestruct{
sync.Once
sync.Once
...
@@ -67,8 +75,6 @@ type Archive struct {
...
@@ -67,8 +75,6 @@ type Archive struct {
errerror
errerror
}
}
vararcArchive
typeTestResultstruct{
typeTestResultstruct{
outputstring
outputstring
errerror
errerror
...
@@ -85,6 +91,11 @@ type TestResult struct {
...
@@ -85,6 +91,11 @@ type TestResult struct {
// short-name:
// short-name:
// image: gce-image-name
// image: gce-image-name
// project: gce-image-project
// 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
typeImageConfigstruct{
typeImageConfigstruct{
Imagesmap[string]GCEImage`json:"images"`
Imagesmap[string]GCEImage`json:"images"`
}
}
...
@@ -97,6 +108,10 @@ type GCEImage struct {
...
@@ -97,6 +108,10 @@ type GCEImage struct {
// Defaults to using only the latest image. Acceptible values are [0, # of images that match the regex).
// Defaults to using only the latest image. Acceptible values are [0, # of images that match the regex).
// If the number of existing previous images is lesser than what is desired, the test will use that is available.
// If the number of existing previous images is lesser than what is desired, the test will use that is available.