mirror of
1
Fork 0

Merge pull request '[v7.0/forgejo] Sort `BuiltinApplicationsClientIDs()` in test' (#3079) from bp-v7.0/forgejo-eea2590 into v7.0/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3079
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
This commit is contained in:
Gusted 2024-04-06 14:09:20 +00:00
commit 52d217ec50
1 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ package auth_test
import ( import (
"path/filepath" "path/filepath"
"slices"
"testing" "testing"
auth_model "code.gitea.io/gitea/models/auth" auth_model "code.gitea.io/gitea/models/auth"
@ -269,7 +270,9 @@ func TestOAuth2AuthorizationCode_TableName(t *testing.T) {
} }
func TestBuiltinApplicationsClientIDs(t *testing.T) { func TestBuiltinApplicationsClientIDs(t *testing.T) {
assert.EqualValues(t, []string{"a4792ccc-144e-407e-86c9-5e7d8d9c3269", "e90ee53c-94e2-48ac-9358-a874fb9e0662", "d57cb8c4-630c-4168-8324-ec79935e18d4"}, auth_model.BuiltinApplicationsClientIDs()) clientIDs := auth_model.BuiltinApplicationsClientIDs()
slices.Sort(clientIDs)
assert.EqualValues(t, []string{"a4792ccc-144e-407e-86c9-5e7d8d9c3269", "d57cb8c4-630c-4168-8324-ec79935e18d4", "e90ee53c-94e2-48ac-9358-a874fb9e0662"}, clientIDs)
} }
func TestOrphanedOAuth2Applications(t *testing.T) { func TestOrphanedOAuth2Applications(t *testing.T) {