helpers

package
v0.0.0-...-18bb2fd Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertOpenAPI

func AssertOpenAPI(t *testing.T, rr *httptest.ResponseRecorder, req *http.Request) []byte

func FactoryCloudAccount

func FactoryCloudAccount() db.CloudAccount

func FactoryOrganizationalUnit

func FactoryOrganizationalUnit() db.OrganizationalUnit

func FactoryTenant

func FactoryTenant() db.CloudTenant

Types

type AppContainerized

type AppContainerized struct {
	App *application.App
	// contains filtered or unexported fields
}

func NewContainerizedApp

func NewContainerizedApp(ctx context.Context) (*AppContainerized, error)

func (*AppContainerized) Close

func (t *AppContainerized) Close()

type AppMocked

type AppMocked struct {
	App          *application.App
	JS           *mocks.TestJS
	Repo         *mocks.TestRepo
	Searcher     *mocks.TestSearcher
	FGAClient    *mocks.TestFGAAuthorizer
	PostgresPool pgxmock.PgxPoolIface
}

func NewMockedApp

func NewMockedApp() (*AppMocked, error)

func (*AppMocked) Close

func (t *AppMocked) Close()

Jump to

Keyboard shortcuts

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