mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: wire up usage tracking for managed agents (#19096)
Wires up the usage collector and publisher to coderd. Relates to coder/internal#814
This commit is contained in:
@@ -111,7 +111,6 @@ func TestDelete(t *testing.T) {
|
||||
// The API checks if the user has any workspaces, so we cannot delete a user
|
||||
// this way.
|
||||
ctx := testutil.Context(t, testutil.WaitShort)
|
||||
// nolint:gocritic // Unit test
|
||||
err := api.Database.UpdateUserDeletedByID(dbauthz.AsSystemRestricted(ctx), deleteMeUser.ID)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ func TestProvisioners_Golden(t *testing.T) {
|
||||
// Replace UUIDs with predictable values for golden files.
|
||||
replace := make(map[string]string)
|
||||
updateReplaceUUIDs := func(coderdAPI *coderd.API) {
|
||||
//nolint:gocritic // This is a test.
|
||||
systemCtx := dbauthz.AsSystemRestricted(context.Background())
|
||||
provisioners, err := coderdAPI.Database.GetProvisionerDaemons(systemCtx)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user