Documentation ¶
Index ¶
- Constants
- Variables
- func AsUser(uc userContext, timeout time.Duration, actions func())
- type GenericResource
- type QueryResponse
- type ReproducibleTestSuiteSetup
- func NewBaseTestSuiteSetup(config testSuiteConfig, testSpace internal.Space, testUser remoteResource, ...) *ReproducibleTestSuiteSetup
- func NewRunawayAppTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup
- func NewSmokeTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup
- func NewTestContextSuiteSetup(config testSuiteConfig, testSpace internal.Space, skipUserCreation bool) *ReproducibleTestSuiteSetup
- func NewTestSuiteSetup(config testSuiteConfig) *ReproducibleTestSuiteSetup
- func (testSetup *ReproducibleTestSuiteSetup) AdminUserContext() UserContext
- func (testSetup ReproducibleTestSuiteSetup) GetOrganizationName() string
- func (testSetup ReproducibleTestSuiteSetup) LongTimeout() time.Duration
- func (testSetup *ReproducibleTestSuiteSetup) RegularUserContext() UserContext
- func (testSetup *ReproducibleTestSuiteSetup) Setup()
- func (testSetup ReproducibleTestSuiteSetup) ShortTimeout() time.Duration
- func (testSetup *ReproducibleTestSuiteSetup) Teardown()
- type UserContext
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.