mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
TAS-975 created test: getPerson call test with admin user
This commit is contained in:
@@ -79,4 +79,15 @@ public class GetPeopleTest extends RestTest
|
|||||||
peopleApi.getPerson(searchedUser.getUsername());
|
peopleApi.getPerson(searchedUser.getUsername());
|
||||||
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(groups = "sanity")
|
||||||
|
@TestRail(section = { "rest-api", "people" }, executionType = ExecutionType.SANITY, description = "Verify admin user gets a person with Rest API and response is successful")
|
||||||
|
public void adminUserChecksIfPersonIsPresent() throws Exception
|
||||||
|
{
|
||||||
|
UserModel adminUser = dataUser.getAdminUser();
|
||||||
|
|
||||||
|
restClient.authenticateUser(adminUser);
|
||||||
|
peopleApi.getPerson(searchedUser.getUsername());
|
||||||
|
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user