test

package
v1.117.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppNotFoundErrorMsg

func AppNotFoundErrorMsg(name string) string

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 response

func GetResponseBody

func GetResponseBody(response *httptest.ResponseRecorder, target interface{}) error

GetResponseBody Gets response payload as type

func NewKubeUtilMock

func NewKubeUtilMock(kubeClient *kubernetesfake.Clientset, radixClient *radixclientfake.Clientset, kedaClient *kedafake.Clientset, secretProviderClient *secretsstorevclientfake.Clientset, certClient *certclientfake.Clientset, tektonClient *tektonclientfake.Clientset) utils.KubeUtil

NewKubeUtilMock Constructor

Types

type TestPrincipal

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

func NewTestPrincipal

func NewTestPrincipal(authenticated bool) *TestPrincipal

func (*TestPrincipal) Id

func (p *TestPrincipal) Id() string

func (*TestPrincipal) IsAuthenticated

func (p *TestPrincipal) IsAuthenticated() bool

func (*TestPrincipal) Name

func (p *TestPrincipal) Name() string

func (*TestPrincipal) Token

func (p *TestPrincipal) Token() string

type Utils

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

Utils Instance variables

func NewTestUtils

func NewTestUtils(kubeClient *kubernetesfake.Clientset, radixClient *radixclientfake.Clientset, kedaClient *kedafake.Clientset, secretProviderClient *secretsstorevclientfake.Clientset, certClient *certclientfake.Clientset, tektonClient *tektonclientfake.Clientset, validator *authnmock.MockValidatorInterface, 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

func (tu *Utils) ExecuteUnAuthorizedRequest(method, endpoint string) <-chan *httptest.ResponseRecorder

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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