Documentation ¶
Index ¶
- func DefaultMockPurgeFunc(context.Context, *authz.PurgeSubjectFromPoliciesReq) (*authz.PurgeSubjectFromPoliciesResp, error)
- func InsertProjectsIntoNewContext(projects []string) context.Context
- func ResetState(ctx context.Context, t *testing.T, serviceRef *service.Service)
- func SetMockStatusChecker(mockInfraServer *server.Server, checker server.StatusChecker)
- func SetupInfraProxyService(ctx context.Context, t *testing.T) (*server.Server, *service.Service, *grpc.ClientConn, func(), ...)
- type MockStatusChecker
- type MockStatusFailedChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMockPurgeFunc ¶
func DefaultMockPurgeFunc(context.Context, *authz.PurgeSubjectFromPoliciesReq) (*authz.PurgeSubjectFromPoliciesResp, error)
DefaultMockPurgeFunc is the authz default mock purge function.
func InsertProjectsIntoNewContext ¶
InsertProjectsIntoNewContext insert the projects into context.
func ResetState ¶
ResetState reset the state
func SetMockStatusChecker ¶
func SetMockStatusChecker(mockInfraServer *server.Server, checker server.StatusChecker)
func SetupInfraProxyService ¶
func SetupInfraProxyService(ctx context.Context, t *testing.T) (*server.Server, *service.Service, *grpc.ClientConn, func(), *authz.PoliciesServiceServerMock, *secrets.MockSecretsServiceClient)
SetupInfraProxyService provides the connection service client.
Types ¶
type MockStatusChecker ¶
type MockStatusChecker struct{}
func (MockStatusChecker) GetInfraServerStatus ¶
func (s MockStatusChecker) GetInfraServerStatus(_ string) (*http.Response, error)
type MockStatusFailedChecker ¶
type MockStatusFailedChecker struct{}
func (MockStatusFailedChecker) GetInfraServerStatus ¶
func (s MockStatusFailedChecker) GetInfraServerStatus(_ string) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.