mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
TAS-974 created test: getPerson call test with Consumer role
This commit is contained in:
@@ -67,4 +67,16 @@ 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 consumer user gets a person with Rest API and response is successful")
|
||||||
|
public void consumerUserChecksIfPersonIsPresent() throws Exception
|
||||||
|
{
|
||||||
|
UserModel consumerUser = dataUser.usingAdmin().createRandomTestUser();
|
||||||
|
dataUser.usingUser(userModel).addUserToSite(consumerUser, siteModel, UserRole.SiteConsumer);
|
||||||
|
|
||||||
|
restClient.authenticateUser(consumerUser);
|
||||||
|
peopleApi.getPerson(searchedUser.getUsername());
|
||||||
|
peopleApi.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user