feat(enterprise/audit): add user object to slog exporter (#9456)

This commit is contained in:
Colin Adler
2023-08-31 13:32:28 -05:00
committed by GitHub
parent 11d4b6f758
commit 796a9754a9
9 changed files with 71 additions and 24 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/coder/coder/v2/coderd/database"
"github.com/coder/coder/v2/coderd/database/dbfake"
"github.com/coder/coder/v2/enterprise/audit"
"github.com/coder/coder/v2/enterprise/audit/audittest"
"github.com/coder/coder/v2/enterprise/audit/backends"
)
@ -25,7 +26,7 @@ func TestPostgresBackend(t *testing.T) {
)
defer cancel()
err := pgb.Export(ctx, alog)
err := pgb.Export(ctx, alog, audit.BackendDetails{})
require.NoError(t, err)
got, err := db.GetAuditLogsOffset(ctx, database.GetAuditLogsOffsetParams{