Add tests for ssh api methods.

This commit is contained in:
Mariano Cano 2019-10-14 13:07:28 -07:00 committed by max furman
parent 38d735be6e
commit f5023244fe
3 changed files with 240 additions and 5 deletions

View file

@ -295,7 +295,7 @@ func (h *caHandler) SSHRoots(w http.ResponseWriter, r *http.Request) {
func (h *caHandler) SSHFederation(w http.ResponseWriter, r *http.Request) {
keys, err := h.Authority.GetSSHFederation()
if err != nil {
WriteError(w, NotFound(err))
WriteError(w, InternalServerError(err))
return
}