Skip to content

Commit d75015e

Browse files
committed
Fix linting errors
Signed-off-by: Radoslav Dimitrov <[email protected]>
1 parent f4657e5 commit d75015e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/auth/jwt_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
304304
jwtManager := auth.NewJWTManager(cfg)
305305

306306
claims := auth.JWTClaims{
307-
AuthMethod: model.AuthMethodGitHubAT,
307+
AuthMethod: auth.MethodGitHubAT,
308308
AuthMethodSubject: "spammer",
309309
Permissions: []auth.Permission{
310310
{
@@ -329,7 +329,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
329329
jwtManager := auth.NewJWTManager(cfg)
330330

331331
claims := auth.JWTClaims{
332-
AuthMethod: model.AuthMethodGitHubAT,
332+
AuthMethod: auth.MethodGitHubAT,
333333
AuthMethodSubject: "gooduser",
334334
Permissions: []auth.Permission{
335335
{
@@ -353,7 +353,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
353353
jwtManager := auth.NewJWTManager(cfg)
354354

355355
claims := auth.JWTClaims{
356-
AuthMethod: model.AuthMethodGitHubAT,
356+
AuthMethod: auth.MethodGitHubAT,
357357
AuthMethodSubject: "user",
358358
Permissions: []auth.Permission{
359359
{
@@ -382,7 +382,7 @@ func TestJWTManager_BlockedNamespaces(t *testing.T) {
382382
jwtManager := auth.NewJWTManager(cfg)
383383

384384
claims := auth.JWTClaims{
385-
AuthMethod: model.AuthMethodNone,
385+
AuthMethod: auth.MethodNone,
386386
AuthMethodSubject: "admin",
387387
Permissions: []auth.Permission{
388388
{

0 commit comments

Comments
 (0)