From f8898c30dc028e8bddadffacbd357c76b0c3506b Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 2 Mar 2022 17:32:18 +0100 Subject: 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 Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick --- integrations/user_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'integrations') 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 -- cgit v1.2.3