workflowhelpers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 173

Documentation

Index

Constants

View Source
const RUNAWAY_QUOTA_MEM_LIMIT = "99999G"

Variables

View Source
var ApiRequest = func(method, endpoint string, response interface{}, timeout time.Duration, data ...string) {
	internal.ApiRequest(commandstarter.NewCommandStarter(), method, endpoint, response, timeout, data...)
}

Functions

func AsUser

func AsUser(uc userContext, timeout time.Duration, actions func())

Types

type GenericResource

type GenericResource struct {
	Metadata struct {
		Guid string `json:"guid"`
	} `json:"metadata"`
}

type QueryResponse

type QueryResponse struct {
	Resources []GenericResource `struct:"resources"`
}

type ReproducibleTestSuiteSetup

type ReproducibleTestSuiteSetup struct {
	TestUser  remoteResource
	TestSpace internal.Space

	SkipSSLValidation bool

	SkipUserCreation bool
	// contains filtered or unexported fields
}

func NewBaseTestSuiteSetup

func NewBaseTestSuiteSetup(config testSuiteConfig, testSpace internal.Space, testUser remoteResource, regularUserContext, adminUserContext UserContext, skipUserCreation bool) *ReproducibleTestSuiteSetup

func NewRunawayAppTestSuiteSetup

func NewRunawayAppTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup

func NewSmokeTestSuiteSetup

func NewSmokeTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup

func NewTestContextSuiteSetup added in v1.0.0

func NewTestContextSuiteSetup(config testSuiteConfig, testSpace internal.Space, skipUserCreation bool) *ReproducibleTestSuiteSetup

func NewTestSuiteSetup

func NewTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup

func (*ReproducibleTestSuiteSetup) AdminUserContext

func (testSetup *ReproducibleTestSuiteSetup) AdminUserContext() UserContext

func (ReproducibleTestSuiteSetup) GetOrganizationName

func (testSetup ReproducibleTestSuiteSetup) GetOrganizationName() string

func (ReproducibleTestSuiteSetup) LongTimeout

func (testSetup ReproducibleTestSuiteSetup) LongTimeout() time.Duration

func (*ReproducibleTestSuiteSetup) RegularUserContext

func (testSetup *ReproducibleTestSuiteSetup) RegularUserContext() UserContext

func (*ReproducibleTestSuiteSetup) Setup

func (testSetup *ReproducibleTestSuiteSetup) Setup()

func (ReproducibleTestSuiteSetup) ShortTimeout

func (testSetup ReproducibleTestSuiteSetup) ShortTimeout() time.Duration

func (*ReproducibleTestSuiteSetup) Teardown

func (testSetup *ReproducibleTestSuiteSetup) Teardown()

type UserContext

type UserContext struct {
	ApiUrl    string
	TestSpace spaceValues
	TestUser  userValues

	SkipSSLValidation bool
	CommandStarter    internal.Starter
	Timeout           time.Duration

	// the followings are left around for CATS to use
	Username string
	Password string
	Org      string
	Space    string

	UseClientCredentials bool
}

func NewUserContext

func NewUserContext(apiUrl string, testUser userValues, testSpace spaceValues, skipSSLValidation bool, timeout time.Duration) UserContext

func (UserContext) AddUserToSpace

func (uc UserContext) AddUserToSpace()

func (UserContext) Login

func (uc UserContext) Login()

func (UserContext) Logout

func (uc UserContext) Logout()

func (UserContext) SetCfHomeDir

func (uc UserContext) SetCfHomeDir() (string, string)

func (UserContext) TargetSpace

func (uc UserContext) TargetSpace()

func (UserContext) UnsetCfHomeDir

func (uc UserContext) UnsetCfHomeDir(originalCfHomeDir, currentCfHomeDir string)

Directories

Path Synopsis
fakes
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