sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add ability to log form auth request #274

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. something like this:

         given().
                auth().form("John", "Doe", log().all()).
        expect().
                statusCode(200).
                body(equalTo("OK")).
        when().
                get("/formAuth");

Note that it should log the request sent automatically sent by FormAuthFilter 
(1). 

Another alternative would be to copy the Request- and ResponseLoggingFilter 
from the original request and use them in (1).  E.g. 

         given().
                auth().form("John", "Doe").
                log().all().
        expect().
                statusCode(200).
                log().all().
                body(equalTo("OK")).
        when().
                get("/formAuth");

Would log the two requests and two responses being made.

Original issue reported on code.google.com by johan.ha...@gmail.com on 22 Nov 2013 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 4 Jun 2014 at 1:33