testsupport

package
v0.0.0-...-5b6bd79 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOSIOUserContext

func CreateOSIOUserContext() context.Context

CreateOSIOUserContext creates a new context using "openshiftio" user's ID

func GetCustomElement

func GetCustomElement(payload string) map[string]interface{}

func GetFileContent

func GetFileContent(path string) (string, error)

Types

type DummyCollaboratorCollector

type DummyCollaboratorCollector struct {
}

func (*DummyCollaboratorCollector) GetSpaceCollaborators

func (c *DummyCollaboratorCollector) GetSpaceCollaborators(ctx context.Context, client *authApi.Client, spaceID uuid.UUID) (*authApi.UserList, error)

type DummyHttpClient

type DummyHttpClient struct {
	Response      *http.Response
	Error         error
	AssertRequest func(req *http.Request)
}

func (*DummyHttpClient) Do

func (c *DummyHttpClient) Do(req *http.Request) (*http.Response, error)

type DummyHttpDoer

type DummyHttpDoer struct {
	*rest.HttpClientDoer
	Client *DummyHttpClient
}

func NewDummyHttpDoer

func NewDummyHttpDoer() *DummyHttpDoer

Jump to

Keyboard shortcuts

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