summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2022-03-02 17:32:18 +0100
committerGitHub <noreply@github.com>2022-03-02 11:32:18 -0500
commitf8898c30dc028e8bddadffacbd357c76b0c3506b (patch)
tree004e3f70a5fa9fd3bf4523b013db4e25e7b1c3d0 /integrations
parentdf9802ca61bac32e9f636e6d813a7fc6608b26a3 (diff)
downloadgitea-f8898c30dc028e8bddadffacbd357c76b0c3506b.tar.gz
gitea-f8898c30dc028e8bddadffacbd357c76b0c3506b.zip
Add note to GPG key response if user has no keys (#18961)
* Prevent invalid key response. * Display note instead of 404 response. * Fixed test. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/user_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/integrations/user_test.go b/integrations/user_test.go
index c12c2be40e..4cfe7700e1 100644
--- a/integrations/user_test.go
+++ b/integrations/user_test.go
@@ -121,6 +121,7 @@ func TestExportUserGPGKeys(t *testing.T) {
defer prepareTestEnv(t)()
// Export empty key list
testExportUserGPGKeys(t, "user1", `-----BEGIN PGP PUBLIC KEY BLOCK-----
+Note: This user hasn't uploaded any GPG keys.
=twTO