servant-auth
servant-auth copied to clipboard
servant-auth-server test failures on loaded machine
Failures:
test/Servant/Auth/ServerSpec.hs:333:3:
1) Servant.Auth.Server, The JWT combinator, suceeds as wreq's oauth2Bearer
uncaught exception: HttpException
HttpExceptionRequest Request {
host = "localhost"
port = 53401
secure = False
requestHeaders = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
path = "/"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out))
(after 1 test)
User {name = "", _id = ""}
To rerun use: --match "/Servant.Auth.Server/The JWT combinator/suceeds as wreq's oauth2Bearer/"
test/Servant/Auth/ServerSpec.hs:349:3:
2) Servant.Auth.Server, The BasicAuth combinator, succeeds with the correct password and username
uncaught exception: HttpException
HttpExceptionRequest Request {
host = "localhost"
port = 53404
secure = False
requestHeaders = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
path = "/"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out))
To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/succeeds with the correct password and username/"
test/Servant/Auth/ServerSpec.hs:526:32:
3) Servant.Auth.Server, The BasicAuth combinator, fails with incorrect password
predicate failed on expected exception: HttpException (HttpExceptionRequest Request {
host = "localhost"
port = 53410
secure = False
requestHeaders = [("Authorization","<REDACTED>"),("User-Agent","haskell wreq-0.5.2.1")]
path = "/"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out)))
To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/fails with incorrect password/"
test/Servant/Auth/ServerSpec.hs:526:32:
4) Servant.Auth.Server, The BasicAuth combinator, fails with no auth header
predicate failed on expected exception: HttpException (HttpExceptionRequest Request {
host = "localhost"
port = 53413
secure = False
requestHeaders = [("User-Agent","haskell wreq-0.5.2.1")]
path = "/"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.connect: <socket: 6>: timeout (Operation timed out)))
To rerun use: --match "/Servant.Auth.Server/The BasicAuth combinator/fails with no auth header/"
Probably just needs increased default timeout.