mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-01 14:41:19 +00:00
TAS-973 created test: getPerson call test with Contributor role
This commit is contained in:
@@ -55,4 +55,16 @@ public class GetPeopleTest extends RestTest
|
||||
peopleApi.getPerson(searchedUser.getUsername());
|
||||
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||
}
|
||||
|
||||
@Test(groups = "sanity")
|
||||
@TestRail(section = { "rest-api", "people" }, executionType = ExecutionType.SANITY, description = "Verify contributor user gets a person with Rest API and response is successful")
|
||||
public void contributorUserChecksIfPersonIsPresent() throws Exception
|
||||
{
|
||||
UserModel contributorUser = dataUser.usingAdmin().createRandomTestUser();
|
||||
dataUser.usingUser(userModel).addUserToSite(contributorUser, siteModel, UserRole.SiteContributor);
|
||||
|
||||
restClient.authenticateUser(contributorUser);
|
||||
peopleApi.getPerson(searchedUser.getUsername());
|
||||
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user