mercredi 29 juin 2016

Mock Session in Spring Boot and RestAssured

I have a web application, running with Spring Boot. Now I have to write tests with Rest Assured. However, for running some of them I have to be authenticated on the server. Server uses google oauth authentication. Is there any way to mock session with rest assured? Documentation doesn't say a lot about this and ways covered there don't help.

when()
      .sessionId("id here")

On the server side I'm using HttpSession with userId parameter inside.

Aucun commentaire:

Enregistrer un commentaire