mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: correct perms for forbidden error in TemplateScheduleStore.Load (#11286)
* chore: TemplateScheduleStore.Load() throwing forbidden error * fix: workspace agent scope to include template
This commit is contained in:
@ -394,12 +394,14 @@ func TestAgentStats(t *testing.T) {
|
||||
require.NoError(t, err, "create stats batcher failed")
|
||||
t.Cleanup(closeBatcher)
|
||||
|
||||
tLogger := slogtest.Make(t, nil)
|
||||
// Build sample workspaces with test agents and fake agent client
|
||||
client, _, _ := coderdtest.NewWithAPI(t, &coderdtest.Options{
|
||||
Database: db,
|
||||
IncludeProvisionerDaemon: true,
|
||||
Pubsub: pubsub,
|
||||
StatsBatcher: batcher,
|
||||
Logger: &tLogger,
|
||||
})
|
||||
|
||||
user := coderdtest.CreateFirstUser(t, client)
|
||||
|
Reference in New Issue
Block a user