Skip to content

Commit

Permalink
Merge pull request 'Sort BuiltinApplicationsClientIDs() in test' (#…
Browse files Browse the repository at this point in the history
…3075) from gusted/forgejo-sort into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3075
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
  • Loading branch information
Gusted committed Apr 6, 2024
2 parents 5691bec + eea2590 commit 0a51ae2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion models/auth/oauth2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package auth_test

import (
"path/filepath"
"slices"
"testing"

auth_model "code.gitea.io/gitea/models/auth"
Expand Down Expand Up @@ -269,7 +270,9 @@ func TestOAuth2AuthorizationCode_TableName(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) {
Expand Down

0 comments on commit 0a51ae2

Please sign in to comment.