mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
feat: add auditing to user routes (#3961)
This commit is contained in:
@ -19,6 +19,7 @@ import (
|
||||
agpl "github.com/coder/coder/coderd"
|
||||
agplAudit "github.com/coder/coder/coderd/audit"
|
||||
"github.com/coder/coder/coderd/database"
|
||||
"github.com/coder/coder/coderd/features"
|
||||
"github.com/coder/coder/coderd/httpapi"
|
||||
"github.com/coder/coder/codersdk"
|
||||
"github.com/coder/coder/enterprise/audit"
|
||||
@ -55,7 +56,7 @@ func newFeaturesService(
|
||||
db database.Store,
|
||||
pubsub database.Pubsub,
|
||||
enablements Enablements,
|
||||
) agpl.FeaturesService {
|
||||
) features.Service {
|
||||
fs := &featuresService{
|
||||
logger: logger,
|
||||
database: db,
|
||||
|
@ -22,6 +22,7 @@ import (
|
||||
agplAudit "github.com/coder/coder/coderd/audit"
|
||||
"github.com/coder/coder/coderd/database"
|
||||
"github.com/coder/coder/coderd/database/databasefake"
|
||||
"github.com/coder/coder/coderd/features"
|
||||
"github.com/coder/coder/codersdk"
|
||||
"github.com/coder/coder/enterprise/audit"
|
||||
"github.com/coder/coder/enterprise/audit/backends"
|
||||
@ -285,7 +286,7 @@ func TestFeaturesServiceSyncEntitlements(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func requestEntitlements(t *testing.T, uut agplCoderd.FeaturesService) codersdk.Entitlements {
|
||||
func requestEntitlements(t *testing.T, uut features.Service) codersdk.Entitlements {
|
||||
t.Helper()
|
||||
r := httptest.NewRequest("GET", "https://example.com/api/v2/entitlements", nil)
|
||||
rw := httptest.NewRecorder()
|
||||
|
Reference in New Issue
Block a user