Documentation
¶
Index ¶
- func GetDefaultApp(dbaasClient *dbaas.Client, namespace string, appName string, apiUser string, ...) (context.CancelFunc, *fiber.App, error)
- func GetFailedRegistrationAggregatorServer() *httptest.Server
- func GetTestHttpAggregatorServer(user, pass, appName, regId string, additionalRoles bool) *httptest.Server
- func GetTestHttpBackupServer(user string, pass string) *httptest.Server
- func HandlerTest(logger *zap.Logger, app *fiber.App, method string, target string, ...) (resp *http.Response, err error)
- func Simplstr() string
- func UseFullFeaturedConfig(logger *zap.Logger, t *testing.T, app *fiber.App, ...)
- type AppCredentials
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 GetTestHttpBackupServer ¶
func HandlerTest ¶
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)
Click to show internal directories.
Click to hide internal directories.