Skip to content

Commit 94e5f3c

Browse files
committed
fix claims reference
1 parent 0355c95 commit 94e5f3c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ func (s *MethodTestSuite) TestUser() {
12811281
OAuthExpiry: link.OAuthExpiry,
12821282
UserID: link.UserID,
12831283
LoginType: link.LoginType,
1284-
DebugContext: json.RawMessage("{}"),
1284+
Claims: database.UserLinkClaims{},
12851285
}).Asserts(rbac.ResourceUserObject(link.UserID), policy.ActionUpdatePersonal).Returns(link)
12861286
}))
12871287
s.Run("UpdateUserRoles", s.Subtest(func(db database.Store, check *expects) {

enterprise/dbcrypt/dbcrypt_internal_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"crypto/rand"
66
"database/sql"
77
"encoding/base64"
8-
"encoding/json"
98
"io"
109
"testing"
1110
"time"
@@ -57,7 +56,7 @@ func TestUserLinks(t *testing.T) {
5756
OAuthRefreshToken: "refresh",
5857
UserID: link.UserID,
5958
LoginType: link.LoginType,
60-
DebugContext: json.RawMessage("{}"),
59+
Claims: database.UserLinkClaims{},
6160
})
6261
require.NoError(t, err)
6362
require.Equal(t, "access", updated.OAuthAccessToken)

0 commit comments

Comments
 (0)