// Set up the instrumented test server to run in GCE container. Creates a new
// GCE VM + pubsub resources, and runs the specified container image. The
// returned cleanup function tears down the VM.
Set up the instrumented test server to run in GCE container. Creates a new
GCE VM + pubsub resources, and runs the specified container image. The
returned cleanup function tears down the VM.
// Set up the instrumented test server to run in GCE container . Creates a new // GCE VM + pubsub resources and runs the specified container image . The // returned cleanup function tears down the VM .
func SetupGce(
	ctx context.Context,
	args *Args,
	logger *log.Logger,
) (*testclient.Client, Cleanup, error) {
	pubsubInfo, cleanupTf, err := setuptf.SetupTf(
		ctx,
		args.ProjectID,
		args.TestRunID,
		gceTfDir,
		map[string]string{
			"image": args.Gce.Image,
		},
		logger,
	)
	if err != nil {
		return nil, cleanupTf, err
	}
	client, err := testclient.New(ctx, args.ProjectID, pubsubInfo)
	return client, cleanupTf, err
}
func SetupGce ( ctx context . Context , args * Args , logger * log . Logger , ) ( * testclient . Client , Cleanup , error ) { pubsubInfo , cleanupTf , err := setuptf . SetupTf ( ctx , args . ProjectID , args . TestRunID , gceTfDir , map [ string ] string { " " : args . Gce . Image , } , logger , ) if err != nil { return nil , cleanupTf , err } client , err := testclient . New ( ctx , args . ProjectID , pubsubInfo ) return client , cleanupTf , err }
Set up the instrumented test server to run in GCE container.
Set up the instrumented test server to run in GCE container .