func SetupGaeStandard()

in e2etestrunner/setupgaestandard.go [27:50]


func SetupGaeStandard(
	ctx context.Context,
	args *Args,
	logger *log.Logger,
) (*testclient.Client, Cleanup, error) {
	pubsubInfo, cleanupTf, err := setuptf.SetupTf(
		ctx,
		args.ProjectID,
		args.TestRunID,
		gaeStandardTfDir,
		map[string]string{
			"runtime":    args.GaeStandard.Runtime,
			"appsource":  args.GaeStandard.AppSource,
			"entrypoint": args.GaeStandard.Entrypoint,
		},
		logger,
	)
	if err != nil {
		return nil, cleanupTf, err
	}

	client, err := testclient.New(ctx, args.ProjectID, pubsubInfo)
	return client, cleanupTf, err
}