I am currently trying to depict a existing API with apiary.io
. The system implements authentication via a login request that returns a http-cookie containing a session-id.
As far as I know it is standard that a browser sends all http-cookies he previously received from a host back to him when making another request.
It seems, this isn’t done by Dredd when running a test generated by my blueprint file. And because of this any requests that needs the user to be logged in do not work correctly for the test.
Is there a possibility to mark a request as “needs to be before running this request” respectively to force Dredd to manage these http-cookies?
BTW, the REST service is implemented in Sails.js
, a mvc-framework for node.js
.