Skip to content

Commit 6218570

Browse files
committed
Fix using forbidden error
1 parent 4ecd497 commit 6218570

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

coderd/coderdtest/authorize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func NewAuthTester(ctx context.Context, t *testing.T, client *codersdk.Client, a
445445
func (a *AuthTester) Test(ctx context.Context, assertRoute map[string]RouteCheck, skipRoutes map[string]string) {
446446
// Always fail auth from this point forward
447447
a.authorizer.Wrapped = &FakeAuthorizer{
448-
AlwaysReturn: rbac.ForbiddenWithInternal(xerrors.New("fake implementation"), nil, nil),
448+
AlwaysReturn: rbac.ForbiddenWithInternal(xerrors.New("fake implementation"), rbac.Subject{}, "", rbac.Object{}, nil),
449449
}
450450

451451
routeMissing := make(map[string]bool)

coderd/rbac/builtin_internal_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ func TestRegoInputValue(t *testing.T) {
148148

149149
cmp := manual.Compare(general)
150150
require.Equal(t, 0, cmp, "manual and general input values should be equal")
151-
152151
})
153152
}
154153

0 commit comments

Comments
 (0)