mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Merge branch 'TAS-925' of gitlab.alfresco.com:tas/alfresco-tas-restapi-test
# Conflicts: # src/test/java/org/alfresco/rest/GetSitesTests.java # src/test/java/org/alfresco/rest/comments/GetCommentsSanityTests.java # src/test/java/org/alfresco/rest/demo/RestDemoTests.java # src/test/java/org/alfresco/rest/sites/AddSiteMembershipRequestSanityTests.java # src/test/java/org/alfresco/rest/sites/GetSiteSanityTests.java # src/test/java/org/alfresco/rest/sites/GetSitesSanityTests.java
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.rest;
|
||||
package org.alfresco.rest.sites;
|
||||
|
||||
import org.alfresco.rest.RestTest;
|
||||
import org.alfresco.rest.exception.JsonToModelConversionException;
|
||||
import org.alfresco.rest.requests.RestSitesApi;
|
||||
import org.alfresco.utility.constants.UserRole;
|
||||
+8
-7
@@ -1,5 +1,6 @@
|
||||
package org.alfresco.rest;
|
||||
package org.alfresco.rest.sites;
|
||||
|
||||
import org.alfresco.rest.RestTest;
|
||||
import org.alfresco.rest.exception.JsonToModelConversionException;
|
||||
import org.alfresco.rest.requests.RestSitesApi;
|
||||
import org.alfresco.utility.constants.UserRole;
|
||||
@@ -46,7 +47,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY, description = "Verify user with Manager role gets sites information and gets status code OK (200)")
|
||||
public void getSitesWithManagerRole() throws JsonToModelConversionException, Exception
|
||||
public void managerIsAbleToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteManager));
|
||||
@@ -56,7 +57,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
|
||||
@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
|
||||
public void collaboratorIsAbleToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
|
||||
@@ -66,7 +67,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user with Contributor role gets sites information and gets status code OK (200)")
|
||||
public void getSitesWithContributorRole() throws JsonToModelConversionException, Exception
|
||||
public void contributorIsAbleToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteContributor));
|
||||
@@ -76,7 +77,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user with Consumer role gets sites information and gets status code OK (200)")
|
||||
public void getSitesWithConsumerRole() throws JsonToModelConversionException, Exception
|
||||
public void consumerIsAbleToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteConsumer));
|
||||
@@ -86,7 +87,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Verify user with Admin user gets sites information and gets status code OK (200)")
|
||||
public void getSitesWithAdminUser() throws JsonToModelConversionException, Exception
|
||||
public void adminUserIsAbleToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(adminUserModel);
|
||||
siteAPI.getAllSites();
|
||||
@@ -95,7 +96,7 @@ public class GetSitesSanityTests extends RestTest
|
||||
|
||||
@TestRail(section = { "rest-api", "sites" }, executionType = ExecutionType.SANITY,
|
||||
description = "Failed authentication get sites call returns status code 401 with Manager role")
|
||||
public void getSitesWithManagerRoleFailedAuth() throws JsonToModelConversionException, Exception
|
||||
public void unauthenticatedUserIsNotAuthorizedToRetrieveSites() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteManager));
|
||||
userModel = dataUser.createRandomTestUser();
|
||||
Reference in New Issue
Block a user