test

package
v0.0.0-...-4fe8a44 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMockPurgeFunc

DefaultMockPurgeFunc is the authz default mock purge function.

func InsertProjectsIntoNewContext

func InsertProjectsIntoNewContext(projects []string) context.Context

InsertProjectsIntoNewContext insert the projects into context.

func ResetState

func ResetState(ctx context.Context, t *testing.T, serviceRef *service.Service)

ResetState reset the state

func SetMockStatusChecker

func SetMockStatusChecker(mockInfraServer *server.Server, checker server.StatusChecker)

func SetupInfraProxyService

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)

Jump to

Keyboard shortcuts

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