Expect session cookie for basic auth at /

This commit is contained in:
Emil Lundberg 2023-10-08 20:25:24 +02:00
parent 37beff7745
commit e6e4df4d70
No known key found for this signature in database
GPG Key ID: BFD86BE9948C849A

View File

@ -744,9 +744,11 @@ func TestHTTPLogin(t *testing.T) {
})
}
testWith(true, http.StatusOK, http.StatusOK, "/")
testWith(true, http.StatusOK, http.StatusUnauthorized, "/meta.js")
testWith(true, http.StatusNotFound, http.StatusUnauthorized, "/any-path/that/does/nooooooot/match-any/noauth-pattern")
testWith(false, http.StatusOK, http.StatusOK, "/")
testWith(false, http.StatusOK, http.StatusForbidden, "/meta.js")
testWith(false, http.StatusNotFound, http.StatusForbidden, "/any-path/that/does/nooooooot/match-any/noauth-pattern")
}