helpers

package
v0.0.0-...-30d0c4a Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApplication

func InitApplication(settings configuration.Settings)

Should be run in the main test function

Types

type Cluster

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

func SpawnCluster

func SpawnCluster() *Cluster

func (*Cluster) GetAzuriteHostPort

func (cluster *Cluster) GetAzuriteHostPort() string

func (*Cluster) GetDBPort

func (cluster *Cluster) GetDBPort() uint16

func (*Cluster) GetDBUrl

func (cluster *Cluster) GetDBUrl() string

func (*Cluster) GetElasticsearchEndpoint

func (cluster *Cluster) GetElasticsearchEndpoint() string

func (*Cluster) Purge

func (cluster *Cluster) Purge()

type TestApp

type TestApp struct {
	Handler    http.Handler
	SigningKey string
	// contains filtered or unexported fields
}

func GetTestApp

func GetTestApp() *TestApp

func (*TestApp) GetSignedJwt

func (app *TestApp) GetSignedJwt(userID uuid.UUID) string

func (*TestApp) GetTestDocument

func (app *TestApp) GetTestDocument(ownerID uuid.UUID) routes.DocumentResponse

func (*TestApp) GetTestUser

func (app *TestApp) GetTestUser() TestUser

func (*TestApp) InsertElasticsearch

func (app *TestApp) InsertElasticsearch(index string, doc interface{})

type TestUser

type TestUser struct {
	ID       uuid.UUID
	Email    string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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