Skip to content

Commit 2f4f1f7

Browse files
committed
fix test
1 parent 27c6919 commit 2f4f1f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/provisioners_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func TestProvisioners_Golden(t *testing.T) {
7171
})
7272
owner := coderdtest.CreateFirstUser(t, client)
7373
templateAdminClient, _ := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID, rbac.ScopedRoleOrgTemplateAdmin(owner.OrganizationID))
74-
memberClient, member := coderdtest.CreateAnotherUser(t, client, owner.OrganizationID)
7574

7675
// Create initial resources with a running provisioner.
7776
firstProvisioner := coderdtest.NewTaggedProvisionerDaemon(t, coderdAPI, "default-provisioner", map[string]string{"owner": "", "scope": "organization"})
@@ -178,8 +177,9 @@ func TestProvisioners_Golden(t *testing.T) {
178177
t.Logf("replace[%q] = %q", id, replaceID)
179178
}
180179

181-
// Test provisioners list with member as members can access
182-
// provisioner daemons.
180+
// Test provisioners list with template admin as members are currently
181+
// unable to access provisioner jobs. In the future (with RBAC
182+
// changes), we may allow them to view _their_ jobs.
183183
t.Run("list", func(t *testing.T) {
184184
t.Parallel()
185185

@@ -190,7 +190,7 @@ func TestProvisioners_Golden(t *testing.T) {
190190
"--column", "id,created at,last seen at,name,version,tags,key name,status,current job id,current job status,previous job id,previous job status,organization",
191191
)
192192
inv.Stdout = &got
193-
clitest.SetupConfig(t, memberClient, root)
193+
clitest.SetupConfig(t, templateAdminClient, root)
194194
err := inv.Run()
195195
require.NoError(t, err)
196196

0 commit comments

Comments
 (0)