test_helpers

package
v0.0.0-...-2ac3827 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0, Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const SoftLayer_WebService_RateLimitExceeded_Exception = "SoftLayer_Exception_WebService_RateLimitExceeded"

Variables

This section is empty.

Functions

func DestroyServer

func DestroyServer(server *ghttp.Server)

func NewFakeSoftlayerSession

func NewFakeSoftlayerSession(transportHandler *FakeTransportHandler) *session.Session

func SetupVPS

func SetupVPS(handler http.HandlerFunc) *vm.Client

func SpecifyServerResps

func SpecifyServerResps(respParas []map[string]interface{}, server *ghttp.Server) error

Types

type FakeTransportHandler

type FakeTransportHandler struct {
	FakeServer           *ghttp.Server
	SoftlayerAPIEndpoint string
	MaxRetries           int
}

func (FakeTransportHandler) DoRequest

func (h FakeTransportHandler) DoRequest(sess *session.Session, service string, method string, args []interface{}, options *sl.Options, pResult interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL