mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
context propagation: pkg/database/bouncers (#3249)
This commit is contained in:
parent
fee3debdcc
commit
4a2a663227
6 changed files with 51 additions and 41 deletions
|
@ -297,7 +297,7 @@ func CreateTestBouncer(t *testing.T, config *csconfig.DatabaseCfg) string {
|
|||
apiKey, err := middlewares.GenerateAPIKey(keyLength)
|
||||
require.NoError(t, err)
|
||||
|
||||
_, err = dbClient.CreateBouncer("test", "127.0.0.1", middlewares.HashSHA512(apiKey), types.ApiKeyAuthType)
|
||||
_, err = dbClient.CreateBouncer(ctx, "test", "127.0.0.1", middlewares.HashSHA512(apiKey), types.ApiKeyAuthType)
|
||||
require.NoError(t, err)
|
||||
|
||||
return apiKey
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue