mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
TAS-1068 - add scenario for delete tag by site consumer
This commit is contained in:
@@ -87,4 +87,14 @@ public class RemoveTagSanityTests extends RestTest
|
|||||||
tagsAPI.deleteTag(document, tag);
|
tagsAPI.deleteTag(document, tag);
|
||||||
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestRail(section = { "rest-api",
|
||||||
|
"tags" }, executionType = ExecutionType.SANITY, description = "Verify Consumer user can't delete tags created by admin user with Rest API and status code is 403")
|
||||||
|
public void consumerIsNotAbleToDeleteTags() throws JsonToModelConversionException, Exception
|
||||||
|
{
|
||||||
|
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteConsumer));
|
||||||
|
tagsAPI.deleteTag(document, tag);
|
||||||
|
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user