forked from NYANDEV/forgejo
ffa33a82bf
- When someone really wants to avoid sharing their email, they could configure git to use the noreply email for git commits. However if they also wanted to use SSH signing, it would not show up as verified as the noreply email address was technically not an activated email address for the user. - Add unit tests for the `ParseCommitWithSSHSignature` function. - Resolves https://codeberg.org/Codeberg/Community/issues/946 (cherry picked from commit1685de7eba
) (cherry picked from commitb1e8858de9
) (cherry picked from commit 1a6bf24d28522d57a56dcbdcf23ef19508ac39c8) (cherry picked from commit 01229433456aa0836adbaafa06bcbefcf4111451) (cherry picked from commit cc836148534ecf6e007eeb913cd94264fda171d3) (cherry picked from commit 429febe0dc2e49bae6ce747c318e68a99b1da9a8) (cherry picked from commit 58a9c2ebe9518576a1b399cce9089fd4894a5c38) (cherry picked from commit fef94aff1c8b35d9a10cf735d4c7ba05f82c95b4) (cherry picked from commit 5c6ecd757992f117d3aafc3a2034807cfccbf5a6)
24 lines
460 B
Go
24 lines
460 B
Go
// Copyright 2021 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package asymkey
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"code.gitea.io/gitea/models/unittest"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
unittest.MainTest(m, &unittest.TestOptions{
|
|
FixtureFiles: []string{
|
|
"gpg_key.yml",
|
|
"public_key.yml",
|
|
"TestParseCommitWithSSHSignature/public_key.yml",
|
|
"deploy_key.yml",
|
|
"gpg_key_import.yml",
|
|
"user.yml",
|
|
"email_address.yml",
|
|
},
|
|
})
|
|
}
|