ets-berkeley-edu/calcentral — pull request #320 by yuhunglin (2012-11-29 10:19:10+00:00)
Title: [CLC-658] Google proxy service implementation, with a few testext tests

JIRA: https://jira.media.berkeley.edu/jira/browse/CLC-658

Should hopefully put into place most of the google services proxy piece. A few pieces differ from the canvas proxy:

- Again, using the google_api library, instead of directly using Signet, although client.authorization is pretty much a passthrough into Signet.
- Dealing with token expiration.
- Noticed that we might of forgotten about paged results. The do... while iterator runs through that portion.
- The api endpoint building for google is slightly different, though seemingly more flexible.

Didn't notice until afterwards but there's a ticket opened up regarding live endpoint testing: https://jira.media.berkeley.edu/jira/browse/CLC-750. There's three specs in here filtered to the testext environment that will actually hit the live endpoints. The parameters of interest get stashed away in settings and then is fake persisted in the database in the individual spec tests.

This only covers the event#list feed from google, there's still the tasks feed to pull in which, hopefully, should be trivial.

Since the middle-layer of mashing the raw results into the up_next and/or my_tasks is dependent upon this, it would be beneficial to push off styling refactoring suggestions until after the first iteration has been merged in.

Travis with 29 test build, 29 tests: https://travis-ci.org/yuhunglin/calcentral/builds/3414291

Bamboo with testext build, 32 tests total: https://bamboo.media.berkeley.edu/bamboo/browse/MYB-CLCMVPYUHUNG10-2