mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-10-08 14:51:20 +00:00
TAS-849 getSite with Collaborator role
This commit is contained in:
@@ -56,4 +56,13 @@ public class GetSitesTests extends RestTest
|
|||||||
siteAPI.getAllSites();
|
siteAPI.getAllSites();
|
||||||
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY, description = "Verify user with Collaborator role gets sites information and gets status code OK (200)")
|
||||||
|
public void getSitesWithCollaboratorRole() throws JsonToModelConversionException, Exception
|
||||||
|
{
|
||||||
|
|
||||||
|
restClient.authenticateUser(usersWithRoles.get(UserRole.SiteCollaborator));
|
||||||
|
siteAPI.getAllSites();
|
||||||
|
siteAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.OK.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user