e2e

package
v0.0.0-rc6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadFixtures

func MustLoadFixtures(fixtures *testfixtures.Loader)

func MustNewFixtures

func MustNewFixtures(db *gorm.DB, paths ...string) *testfixtures.Loader

func NewJSONReader

func NewJSONReader(body interface{}) (io.Reader, error)

func ReadResponseBody

func ReadResponseBody(resp *http.Response, body interface{}) error

Types

type TestEnvironment

type TestEnvironment struct {
	PostgresC testcontainers.Container
	RedisC    testcontainers.Container
	MinioC    testcontainers.Container
	SmtpC     testcontainers.Container
	Container *registry.Container
	// contains filtered or unexported fields
}

func NewTestContainer

func NewTestContainer() *TestEnvironment

func (*TestEnvironment) Close

func (tc *TestEnvironment) Close()

func (*TestEnvironment) MustInitialize

func (tc *TestEnvironment) MustInitialize(cfg *appconfig.Config)

Jump to

Keyboard shortcuts

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