aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-05-28 23:25:54 +0200
committerGitHub <noreply@github.com>2020-05-28 17:25:54 -0400
commit560744fb3399b33b8006e5a6a54a473696cc5b34 (patch)
tree6cfb6b38c72f711069106591f07dae006cab6aa7 /integrations
parent9f5576980411385a21668ce5930e53b89be67a5e (diff)
downloadgitea-560744fb3399b33b8006e5a6a54a473696cc5b34.tar.gz
gitea-560744fb3399b33b8006e5a6a54a473696cc5b34.zip
Handle expected errors in AddGPGkey API (#11644)
* handle GPG Parse & Email Errors * correct TEST * update Swagger * more Docu
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_gpg_keys_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_gpg_keys_test.go b/integrations/api_gpg_keys_test.go
index edae22205e..e664c3c256 100644
--- a/integrations/api_gpg_keys_test.go
+++ b/integrations/api_gpg_keys_test.go
@@ -32,7 +32,7 @@ func TestGPGKeys(t *testing.T) {
results: []int{http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized, http.StatusUnauthorized},
},
{name: "LoggedAsUser2", makeRequest: session.MakeRequest, token: token,
- results: []int{http.StatusOK, http.StatusOK, http.StatusNotFound, http.StatusNoContent, http.StatusInternalServerError, http.StatusInternalServerError, http.StatusCreated, http.StatusCreated}},
+ results: []int{http.StatusOK, http.StatusOK, http.StatusNotFound, http.StatusNoContent, http.StatusUnprocessableEntity, http.StatusNotFound, http.StatusCreated, http.StatusCreated}},
}
for _, tc := range tt {