internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CFAuthRetries = 2
View Source
const VerboseAuth = "RELINT_VERBOSE_AUTH"

Variables

This section is empty.

Functions

func ApiRequest

func ApiRequest(cmdStarter internal.Starter, method, endpoint string, response interface{}, timeout time.Duration, data ...string)

func CfAuth

func CfAuth(cmdStarter internal.Starter, reporter internal.Reporter, user string, password string, timeout time.Duration) error

Types

type Space

type Space interface {
	Create()
	Destroy()
	OrganizationName() string
	SpaceName() string
	QuotaName() string
}

type TestSpace

type TestSpace struct {
	QuotaDefinitionName string

	QuotaDefinitionTotalMemoryLimit      string
	QuotaDefinitionInstanceMemoryLimit   string
	QuotaDefinitionRoutesLimit           string
	QuotaDefinitionAppInstanceLimit      string
	QuotaDefinitionServiceInstanceLimit  string
	QuotaDefinitionAllowPaidServicesFlag string
	QuotaDefinitionReservedRoutePorts    string
	CommandStarter                       internal.Starter
	Timeout                              time.Duration
	// contains filtered or unexported fields
}

func NewBaseTestSpace

func NewBaseTestSpace(spaceName, organizationName, quotaDefinitionName, quotaDefinitionTotalMemoryLimit string, isExistingOrganization bool, isExistingSpace bool, timeout time.Duration, cmdStarter internal.Starter) *TestSpace

func NewRegularTestSpace

func NewRegularTestSpace(cfg spaceConfig, quotaLimit string) *TestSpace

func (*TestSpace) Create

func (ts *TestSpace) Create()

func (*TestSpace) Destroy

func (ts *TestSpace) Destroy()

func (*TestSpace) OrganizationName

func (ts *TestSpace) OrganizationName() string

func (*TestSpace) QuotaName

func (ts *TestSpace) QuotaName() string

func (*TestSpace) SpaceName

func (ts *TestSpace) SpaceName() string

type TestUser

type TestUser struct {
	// contains filtered or unexported fields
}

func NewAdminUser

func NewAdminUser(config adminuserConfig, cmdStarter internal.Starter) *TestUser

func NewTestUser

func NewTestUser(config userConfig, cmdStarter internal.Starter) *TestUser

func (*TestUser) Create

func (user *TestUser) Create()

func (*TestUser) Destroy

func (user *TestUser) Destroy()

func (*TestUser) Password

func (user *TestUser) Password() string

func (*TestUser) ShouldRemain

func (user *TestUser) ShouldRemain() bool

func (*TestUser) Username

func (user *TestUser) Username() string

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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