mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 05:19:35 +00:00
Upgraded from 99c19923, branch release-3.0. This required fetching or upgrading the following: * k8s.io/api to kubernetes-1.9.1 * k8s.io/apimachinery to kubernetes-1.9.1 * github.com/juju/ratelimit to 1.0.1 * github.com/spf13/pflag to 4c012f6d Also, update Scope's imports/function calls to be compatible with the new client.
22 lines
587 B
Go
22 lines
587 B
Go
// +build appengine
|
|
|
|
package aetest
|
|
|
|
import "appengine/aetest"
|
|
|
|
// NewInstance launches a running instance of api_server.py which can be used
|
|
// for multiple test Contexts that delegate all App Engine API calls to that
|
|
// instance.
|
|
// If opts is nil the default values are used.
|
|
func NewInstance(opts *Options) (Instance, error) {
|
|
aetest.PrepareDevAppserver = PrepareDevAppserver
|
|
var aeOpts *aetest.Options
|
|
if opts != nil {
|
|
aeOpts = &aetest.Options{
|
|
AppID: opts.AppID,
|
|
StronglyConsistentDatastore: opts.StronglyConsistentDatastore,
|
|
}
|
|
}
|
|
return aetest.NewInstance(aeOpts)
|
|
}
|