Closed GoogleCodeExporter closed 9 years ago
To clarify the circumstances where I do not receive such an error, the
following tests cause no such warning.
// No credentials.
expect()
.statusLine("HTTP/1.1 401 Authorization Required")
.header("WWW-Authenticate", "Basic realm=\"myapplication\"")
.when()
.get("/");
// Malformed credentials.
given()
.auth()
.basic("a:bcd", "abcd")
.expect()
.statusCode(400)
.when()
.get("/");
// Well-formed and valid credentials.
given()
.auth()
.basic("validuser", "validpass")
.expect()
.statusCode(200)
.when()
.get("/");
Original comment by jocon...@internode.com.au
on 3 Mar 2011 at 1:53
I cannot reproduce this, please have a look at the test called
"supportsExpectingStatusCodeWhenAuthenticationError" here:
https://github.com/jayway/rest-assured/blob/master/examples/rest-assured-itest-j
ava/src/test/java/com/jayway/restassured/itest/java/JSONGetITest.java
Could there be something wrong with the server authentication setup?
Original comment by johan.ha...@gmail.com
on 3 Mar 2011 at 8:46
Closing because no input from user.
Original comment by johan.ha...@gmail.com
on 23 Mar 2011 at 8:36
Original issue reported on code.google.com by
jocon...@internode.com.au
on 3 Mar 2011 at 1:44