mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
parent
a1d5a02646
commit
0a39066f9d
9 changed files with 1680 additions and 240 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue