mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
TAS-920 valid request returns success status code 200 with Collaborator role
This commit is contained in:
@@ -70,4 +70,17 @@ public class GetNodeTagsSanityTests extends RestTest
|
||||
.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@TestRail(section = { "rest-api", "tags" },
|
||||
executionType = ExecutionType.SANITY, description = "Verify site Collaborator is able to get node tags")
|
||||
public void siteCollaboratorIsAbleToRetrieveNodeTags() throws JsonToModelConversionException, Exception
|
||||
{
|
||||
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
|
||||
tagsAPI.addTag(document, tagValue);
|
||||
|
||||
tagsAPI.getNodeTags(document).assertTagExists(tagValue);
|
||||
|
||||
tagsAPI.usingRestWrapper()
|
||||
.assertStatusCodeIs(HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user