Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataBackendOptions ¶
type DataBackendOptions struct { Repository string Tag string EnvironmentVariables []string Cmd string RelevantPort string }
func CreatePostgresDatabaseBackendOptions ¶
func CreatePostgresDatabaseBackendOptions(postgresPassword string) *DataBackendOptions
func CreateRedisDatabaseBackendOptions ¶
func CreateRedisDatabaseBackendOptions() *DataBackendOptions
type DatabaseBackend ¶
type DatabaseBackend struct { URI string // contains filtered or unexported fields }
type Environment ¶
Environment contains all information and all references needed to create and use a test environment
func NewGinTestEnvironment ¶
func NewGinTestEnvironment(dbOpts *DataBackendOptions, bearerToken string) (*Environment, error)
func (*Environment) DoRequest ¶
func (env *Environment) DoRequest(relativeURL string, method string, body []byte) (*httptest.ResponseRecorder, error)
DoRequests makes a request to the test environment
func (*Environment) GetDatabaseBackendURI ¶
func (env *Environment) GetDatabaseBackendURI() string
GetDatabaseBackendURI returns the domain and port of the created database backend
func (*Environment) Teardown ¶
func (env *Environment) Teardown() error
Click to show internal directories.
Click to hide internal directories.