top

Package aeintegrate facilitates end-to-end testing against the production Google App Engine.

This is a specialized tool that could be used in addition to unit tests. It calls the `gcloud app` command directly.

aedeploy (go get google.golang.org/appengine/cmd/aedeploy) and gcloud (https://cloud.google.com/sdk) must be installed. You must be authorized via the gcloud command-line tool (`gcloud auth login`).

You may specify the locations of aedeploy and/or gcloud via the AEDEPLOY_BIN and GCLOUD_BIN environment variables, respectively.

Sample usage with `go test`:

package myapp

import (
	"testing"
	"google.golang.org/appengine/aeintegrate"
)

func TestApp(t *testing.T) {
	t.Parallel()
	app := aeintegrate.App{Name: "A", Dir: "app"},
	if err := app.Deploy(); err != nil {
		t.Fatalf("could not deploy app: %v", err)
	}
	defer app.Cleanup()
	resp, err := app.Get("/")
	...
}

Imported only in test by 2 package(s)

  1. github.com/GoogleCloudPlatform/golang-samples/internal/e2e
  2. github.com/tortuoise/golang-samples/internal/e2e

Imports 4 package(s)

  1. google.golang.org/api/appengine/v1
  2. gopkg.in/yaml.v2
  3. golang.org/x/net/context
  4. golang.org/x/oauth2/google