Documentation
¶
Index ¶
- func AppNotFoundErrorMsg(name string) string
- func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func ApplyRegistrationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, ...) error
- func EqualsNamespaceFunc(f event.NamespaceFunc) gomock.Matcher
- func GetErrorResponse(response *httptest.ResponseRecorder) (*radixhttp.Error, error)
- func GetResponseBody(response *httptest.ResponseRecorder, target any) error
- func NewKubeUtilMock(kubeClient *kubernetesfake.Clientset, radixClient *radixclientfake.Clientset, ...) utils.KubeUtil
- type TestPrincipal
- type TestUtils
- func (tu *TestUtils) ExecuteRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
- func (tu *TestUtils) ExecuteRequestWithParameters(method, endpoint string, parameters any) <-chan *httptest.ResponseRecorder
- func (tu *TestUtils) 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 ApplyApplicationWithSync ¶ added in v1.127.0
func ApplyApplicationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, commonTestUtils *commontest.Utils, applicationBuilder operatorutils.ApplicationBuilder) error
ApplyApplicationWithSync syncs based on application builder, and default builder for registration.
func ApplyDeploymentWithSync ¶ added in v1.127.0
func ApplyDeploymentWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, dynamicClient dynamicclient.Client, commonTestUtils *commontest.Utils, secretproviderclient secretsstorevclient.Interface, certClient *certfake.Clientset, deploymentBuilder operatorutils.DeploymentBuilder) error
ApplyDeploymentWithSync syncs based on deployment builder, and default builders for application and registration.
func ApplyRegistrationWithSync ¶ added in v1.127.0
func ApplyRegistrationWithSync(client kubernetes.Interface, radixclient radixclient.Interface, kedaClient kedav2.Interface, commonTestUtils *commontest.Utils, registrationBuilder operatorutils.RegistrationBuilder) error
ApplyRegistrationWithSync syncs based on registration builder
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 any) 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 TestUtils ¶ added in v1.127.0
type TestUtils struct {
// contains filtered or unexported fields
}
TestUtils 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 ...controller.Controller) TestUtils
NewTestUtils Constructor
func (*TestUtils) ExecuteRequest ¶ added in v1.127.0
func (tu *TestUtils) ExecuteRequest(method, endpoint string) <-chan *httptest.ResponseRecorder
ExecuteRequest Helper method to issue a http request
func (*TestUtils) ExecuteRequestWithParameters ¶ added in v1.127.0
func (tu *TestUtils) ExecuteRequestWithParameters(method, endpoint string, parameters any) <-chan *httptest.ResponseRecorder
ExecuteRequestWithParameters Helper method to issue a http request with payload
func (*TestUtils) ExecuteUnAuthorizedRequest ¶ added in v1.127.0
func (tu *TestUtils) ExecuteUnAuthorizedRequest(method, endpoint string) <-chan *httptest.ResponseRecorder