Authenticate to "login" endpoint for non-existent mount path bug (#13162)

* changing response from missing client token to permission denied

* removing todo comment

* fix tests

* adding changelog

* fixing changelog
This commit is contained in:
akshya96
2021-11-22 17:06:59 -08:00
committed by GitHub
parent 87c355e2bb
commit 94ef8ab3ae
7 changed files with 13 additions and 9 deletions

View File

@@ -315,8 +315,8 @@ func TestHandler_MissingToken(t *testing.T) {
if err != nil {
t.Fatal(err)
}
if resp.StatusCode != 400 {
t.Fatalf("expected code 400, got: %d", resp.StatusCode)
if resp.StatusCode != 403 {
t.Fatalf("expected code 403, got: %d", resp.StatusCode)
}
}