16212: Add clues/details to authentication error messages.
[arvados.git] / lib / controller / localdb / login_pam_test.go
index 4ecead8b15d816098303bb5e80965ef243f23a82..d32aa1f24656977c5c094fa243429b5fa879b05b 100644 (file)
@@ -46,7 +46,7 @@ func (s *PamSuite) TestLoginFailure(c *check.C) {
                Username: "bogususername",
                Password: "boguspassword",
        })
-       c.Check(err, check.ErrorMatches, "Authentication failure")
+       c.Check(err, check.ErrorMatches, `PAM: Authentication failure \(with username "bogususername" and password\)`)
        hs, ok := err.(interface{ HTTPStatus() int })
        if c.Check(ok, check.Equals, true) {
                c.Check(hs.HTTPStatus(), check.Equals, http.StatusUnauthorized)