Skip to content
Prev Previous commit
Next Next commit
:)
  • Loading branch information
aslilac committed Aug 6, 2025
commit e38dcebf6676205da35c6a3662c0dc9490e2dc9c
10 changes: 6 additions & 4 deletions enterprise/coderd/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ func TestUpdateTemplateACL(t *testing.T) {

ctx := testutil.Context(t, testutil.WaitLong)

//nolint:gocritic // we're testing invalid UUID so testing RBAC is not relevant here.
//nolint:gocritic // Testing ACL validation
err := client.UpdateTemplateACL(ctx, template.ID, req)
require.Error(t, err)
cerr, _ := codersdk.AsError(err)
Expand All @@ -1446,7 +1446,7 @@ func TestUpdateTemplateACL(t *testing.T) {

ctx := testutil.Context(t, testutil.WaitLong)

//nolint:gocritic // we're testing invalid UUID so testing RBAC is not relevant here.
//nolint:gocritic // Testing ACL validation
err := client.UpdateTemplateACL(ctx, template.ID, req)
require.Error(t, err)
cerr, _ := codersdk.AsError(err)
Expand All @@ -1472,7 +1472,7 @@ func TestUpdateTemplateACL(t *testing.T) {

ctx := testutil.Context(t, testutil.WaitLong)

//nolint:gocritic // we're testing invalid user so testing RBAC is not relevant here.
//nolint:gocritic // Testing ACL validation
err := client.UpdateTemplateACL(ctx, template.ID, req)
require.Error(t, err)
cerr, _ := codersdk.AsError(err)
Expand All @@ -1496,6 +1496,7 @@ func TestUpdateTemplateACL(t *testing.T) {
ctx := testutil.Context(t, testutil.WaitLong)

_, deletedUser := coderdtest.CreateAnotherUser(t, client, user.OrganizationID)
//nolint:gocritic // Can't delete yourself
err := client.DeleteUser(ctx, deletedUser.ID)
require.NoError(t, err)

Expand Down Expand Up @@ -1524,6 +1525,7 @@ func TestUpdateTemplateACL(t *testing.T) {
ctx := testutil.Context(t, testutil.WaitLong)

_, deletedUser := coderdtest.CreateAnotherUser(t, client, user.OrganizationID)
//nolint:gocritic // Can't delete yourself
err := client.DeleteUser(ctx, deletedUser.ID)
require.NoError(t, err)

Expand Down Expand Up @@ -1559,7 +1561,7 @@ func TestUpdateTemplateACL(t *testing.T) {

ctx := testutil.Context(t, testutil.WaitLong)

//nolint:gocritic // we're testing invalid role so testing RBAC is not relevant here.
//nolint:gocritic // Testing ACL validation
err := client.UpdateTemplateACL(ctx, template.ID, req)
require.Error(t, err)
cerr, _ := codersdk.AsError(err)
Expand Down
Loading