TAS-1053 - add test "Valid request returns success status code 201 with collaborator user"

This commit is contained in:
cagache
2016-10-03 15:17:32 +03:00
parent 6a970a2902
commit d0f209bb3c
@@ -59,4 +59,13 @@ public class AddTagSanityTests extends RestTest
tagsAPI.addTag(document, "tag" + UserRole.SiteManager);
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED);
}
@TestRail(section = { "rest-api",
"tags" }, executionType = ExecutionType.SANITY, description = "Verify Collaborator user adds tags with Rest API and status code is 201")
public void collaboratorIsAbleToAddTag() throws JsonToModelConversionException, Exception
{
restClient.authenticateUser(usersWithRoles.getOneUserWithRole(UserRole.SiteCollaborator));
tagsAPI.addTag(document, "tag" + UserRole.SiteCollaborator);
tagsAPI.usingRestWrapper().assertStatusCodeIs(HttpStatus.CREATED);
}
}