TAS-1112 - update tag with contributor role

This commit is contained in:
cagache
2016-10-05 16:16:55 +03:00
parent 08cbc408fa
commit 20a70d7053
@@ -82,5 +82,14 @@ public class UpdateTagSanityTests extends RestTest
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
}
@TestRail(section = { "rest-api",
"tags" }, executionType = ExecutionType.SANITY, description = "Verify Contributor user can't update tags with Rest API and status code is 403")
public void contributorIsNotAbleToUpdateTag() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteContributor));
tagsAPI.updateTag(oldTag, newTag);
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.FORBIDDEN);
}
}