This commit is contained in:
AlteredCoder 2022-06-22 10:29:02 +02:00 committed by GitHub
parent a1d5a02646
commit 0a39066f9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 1680 additions and 240 deletions

View file

@ -23,6 +23,7 @@ type LAPI struct {
loginResp models.WatcherAuthResponse
bouncerKey string
t *testing.T
DBConfig *csconfig.DatabaseCfg
}
func SetupLAPITest(t *testing.T) LAPI {
@ -36,10 +37,12 @@ func SetupLAPITest(t *testing.T) LAPI {
if err != nil {
t.Fatalf("%s", err.Error())
}
return LAPI{
router: router,
loginResp: loginResp,
bouncerKey: APIKey,
DBConfig: config.API.Server.DbConfig,
}
}