Documentation
¶
Index ¶
- func AppNotFoundErrorMsg(name string) string
- func EqualsNamespaceFunc(f event.NamespaceFunc) gomock.Matcher
- func GetErrorResponse(response *httptest.ResponseRecorder) (*radixhttp.Error, error)
- func GetResponseBody(response *httptest.ResponseRecorder, target interface{}) error
- func NewKubeUtilMock(client kubernetes.Interface, radixclient radixclient.Interface) utils.KubeUtil
- type Utils
- func (tu *Utils) ExecuteRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
- func (tu *Utils) ExecuteRequestWithParameters(method, endpoint string, parameters interface{}) <-chan *httptest.ResponseRecorder
- func (tu *Utils) ExecuteUnAuthorizedRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppNotFoundErrorMsg ¶
AppNotFoundErrorMsg When app registration is not found
func EqualsNamespaceFunc ¶
func EqualsNamespaceFunc(f event.NamespaceFunc) gomock.Matcher
EqualsNamespaceFunc compares namespace function type and value returned
func GetErrorResponse ¶
func GetErrorResponse(response *httptest.ResponseRecorder) (*radixhttp.Error, error)
GetErrorResponse Gets error repsonse
func GetResponseBody ¶
func GetResponseBody(response *httptest.ResponseRecorder, target interface{}) error
GetResponseBody Gets response payload as type
func NewKubeUtilMock ¶
func NewKubeUtilMock(client kubernetes.Interface, radixclient radixclient.Interface) utils.KubeUtil
NewKubeUtilMock Constructor
Types ¶
type Utils ¶
type Utils struct {
// contains filtered or unexported fields
}
Utils Instance variables
func NewTestUtils ¶
func NewTestUtils(client kubernetes.Interface, radixclient radixclient.Interface, controllers ...models.Controller) Utils
NewTestUtils Constructor
func (*Utils) ExecuteRequest ¶
func (tu *Utils) ExecuteRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
ExecuteRequest Helper method to issue a http request
func (*Utils) ExecuteRequestWithParameters ¶
func (tu *Utils) ExecuteRequestWithParameters(method, endpoint string, parameters interface{}) <-chan *httptest.ResponseRecorder
ExecuteRequestWithParameters Helper method to issue a http request with payload
func (*Utils) ExecuteUnAuthorizedRequest ¶ added in v1.7.1
func (tu *Utils) ExecuteUnAuthorizedRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
Click to show internal directories.
Click to hide internal directories.