TAS-1068 - add scenario for delete tag by site consumer

This commit is contained in:
cagache
2016-10-04 09:32:53 +03:00
parent ff68734848
commit 0d5753d1c4

View File

@@ -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);
}
} }