testing

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultApp

func GetDefaultApp(
	dbaasClient *dbaas.Client,
	namespace string,
	appName string,
	apiUser string,
	apiPass string,
	aggregatorRegistrationLabels map[string]string,
	adapterAddress string,
	dbAdmin service.DbAdministration,
	backupAddress string,
	backupDaemonApiUser string,
	backupDaemonApiUPass string,
	backupFullRestore bool,
	httpClient utils.HttpClient,
	supports dao.SupportsBase,
	logger *zap.Logger,
	profiler bool,
	promServiceName string) (context.CancelFunc, *fiber.App, error)

func GetFailedRegistrationAggregatorServer

func GetFailedRegistrationAggregatorServer() *httptest.Server

func GetTestHttpAggregatorServer

func GetTestHttpAggregatorServer(user, pass, appName, regId string, additionalRoles bool) *httptest.Server

func GetTestHttpBackupServer

func GetTestHttpBackupServer(user string, pass string) *httptest.Server

func HandlerTest

func HandlerTest(logger *zap.Logger, app *fiber.App, method string, target string, bodyStruct interface{}, creds ...string) (resp *http.Response, err error)

func Simplstr

func Simplstr() string

func UseFullFeaturedConfig

func UseFullFeaturedConfig(logger *zap.Logger, t *testing.T, app *fiber.App, version, appName,
	adapterApiUser, adapterApiPass string, testUsers bool, testBackup bool, backupApiUser, backupApiPass string)

Types

type AppCredentials

type AppCredentials struct {
	AppName           string
	AdapterApiUser    string
	AdapterApiPass    string
	BackupApiUser     string
	BackupApiPass     string
	AggregatorApiUser string
	AggregatorApiPass string
}

func PrepateTestApp

func PrepateTestApp(dbaasClient *dbaas.Client, logger *zap.Logger, dbAdmin service.DbAdministration,
	testApp AppCredentials, backupAddress string) (context.CancelFunc, *fiber.App, error, AppCredentials)

Jump to

Keyboard shortcuts

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