mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-31 09:57:17 +02:00
all: fix incorrect http status codes #135
This commit is contained in:
parent
f68338c888
commit
c274112ecc
5 changed files with 12 additions and 11 deletions
|
@ -77,7 +77,7 @@ func TestAuthenticate_SignIn(t *testing.T) {
|
|||
RefreshDeadline: time.Now().Add(10 * time.Second),
|
||||
}},
|
||||
identity.MockProvider{ValidateResponse: true},
|
||||
http.StatusForbidden},
|
||||
http.StatusBadRequest},
|
||||
{"session not valid",
|
||||
&sessions.MockSessionStore{
|
||||
Session: &sessions.SessionState{
|
||||
|
@ -94,7 +94,7 @@ func TestAuthenticate_SignIn(t *testing.T) {
|
|||
RefreshToken: "RefreshToken",
|
||||
RefreshDeadline: time.Now().Add(10 * time.Second),
|
||||
}}, identity.MockProvider{ValidateResponse: true},
|
||||
http.StatusForbidden},
|
||||
http.StatusBadRequest},
|
||||
{"session refresh error",
|
||||
&sessions.MockSessionStore{
|
||||
Session: &sessions.SessionState{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue