test

package
v0.0.0-...-e3bd1bf Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFoundryAPIStub

type CloudFoundryAPIStub struct {
	APIFake *fakes.FakeCloudFoundryClient

	// Each of these types maps the content of the
	// API query's "q" parameter to a slice of
	// the relevant type.
	Services         map[string][]cf.Service
	ServicePlans     map[string][]cf.ServicePlan
	ServiceInstances map[string][]cf.ServiceInstance

	// Each of these types maps a GUID to an instance of the type
	Orgs   map[string]cf.Org
	Spaces map[string]cf.Space
}

Provides a pre-configured stub of the CloudFoundry API client for use in tests.

It doesn't cover every part of the API, just those bits needed by tests.

func NewCloudFoundryAPIStub

func NewCloudFoundryAPIStub() *CloudFoundryAPIStub

Jump to

Keyboard shortcuts

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