mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
core: update RestAuthAPI to use configureRequestSpec builder
This commit is contained in:
@@ -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_");
|
||||
|
||||
Reference in New Issue
Block a user