core: update RestAuthAPI to use configureRequestSpec builder

This commit is contained in:
Paul Brodner
2017-01-05 15:40:16 +02:00
parent 8276ec0512
commit 5fb7537a45
@@ -20,7 +20,7 @@ public class AuthTests extends RestTest
ticketBody.setUserId("admin");
ticketBody.setPassword("admin");
RestTicketModel ticketReturned = restClient.withAuthAPI().createTicket(ticketBody);
RestTicketModel ticketReturned = restClient.authenticateUser(dataContent.getAdminUser()).withAuthAPI().createTicket(ticketBody);
restClient.assertStatusCodeIs(HttpStatus.CREATED);
ticketReturned.assertThat().field("id").contains("TICKET_");