Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Issue 10828042: Extensions Docs Server: Integration testing (Closed)

Created:
8 years, 5 months ago by cduvall
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, clintstaley
Visibility:
Public.

Description

Extensions Docs Server: Integration testing A test that makes sure all the pages in the templates/public directory render without erroring. BUG=131095 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149101

Patch Set 1 : #

Patch Set 2 : improvements #

Patch Set 3 : Moved logic into server instance #

Total comments: 6

Patch Set 4 : refactor #

Total comments: 6

Patch Set 5 : fixes #

Patch Set 6 : fix for CQ #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -258 lines) Patch
M chrome/common/extensions/api/file_browser_handler.json View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/input_ime.json View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/extensions/docs/extensions/input.ime.html View 1 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/api_data_source_test.py View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/app.yaml View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/extensions/docs/server2/appengine_main.py View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/appengine_memcache.py View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/common/extensions/docs/server2/appengine_url_fetcher.py View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
A chrome/common/extensions/docs/server2/appengine_wrappers.py View 1 2 3 4 1 chunk +33 lines, -0 lines 1 comment Download
M chrome/common/extensions/docs/server2/branch_utility_test.py View 1 2 3 4 2 chunks +2 lines, -2 lines 1 comment Download
M chrome/common/extensions/docs/server2/echo_handler.py View 1 2 3 1 chunk +0 lines, -141 lines 0 comments Download
M chrome/common/extensions/docs/server2/handlebar_dict_generator.py View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
A + chrome/common/extensions/docs/server2/handler.py View 1 2 3 4 6 chunks +74 lines, -79 lines 0 comments Download
M chrome/common/extensions/docs/server2/in_memory_memcache.py View 1 2 3 4 1 chunk +3 lines, -3 lines 1 comment Download
A chrome/common/extensions/docs/server2/integration_test.py View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/memcache_file_system_test.py View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/server_instance.py View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/start_dev_server.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/template_data_source.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/templates/public/experimental_inputUI.html View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
cduvall
Testing yay!
8 years, 5 months ago (2012-07-26 23:46:33 UTC) #1
not at google - send to devlin
That's really cool. Nice approach. What would be *even better* is if we could exercise ...
8 years, 4 months ago (2012-07-30 16:37:37 UTC) #2
cduvall
This works way better, I moved all the logic into server_instance, and now I can ...
8 years, 4 months ago (2012-07-30 21:00:20 UTC) #3
not at google - send to devlin
https://chromiumcodereview.appspot.com/10828042/diff/7001/chrome/common/extensions/docs/server2/echo_handler.py File chrome/common/extensions/docs/server2/echo_handler.py (right): https://chromiumcodereview.appspot.com/10828042/diff/7001/chrome/common/extensions/docs/server2/echo_handler.py#newcode68 chrome/common/extensions/docs/server2/echo_handler.py:68: self.response) why can't you put *all* of this, besides ...
8 years, 4 months ago (2012-07-30 21:19:09 UTC) #4
cduvall
This is still not testing warmup requests, because those require full appengine functionality. They request ...
8 years, 4 months ago (2012-07-30 22:48:09 UTC) #5
not at google - send to devlin
Cool, lgtm. The idea with appengine_wrappers was for it to try to use fake implementations ...
8 years, 4 months ago (2012-07-30 23:00:44 UTC) #6
cduvall
https://chromiumcodereview.appspot.com/10828042/diff/15001/chrome/common/extensions/docs/server2/appengine_url_fetcher.py File chrome/common/extensions/docs/server2/appengine_url_fetcher.py (right): https://chromiumcodereview.appspot.com/10828042/diff/15001/chrome/common/extensions/docs/server2/appengine_url_fetcher.py#newcode21 chrome/common/extensions/docs/server2/appengine_url_fetcher.py:21: self._urlfetch = urlfetch On 2012/07/30 23:00:44, kalman wrote: > ...
8 years, 4 months ago (2012-07-30 23:38:18 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/10828042/13
8 years, 4 months ago (2012-07-30 23:39:50 UTC) #8
commit-bot: I haz the power
Presubmit check for 10828042-13 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-07-30 23:40:18 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cduvall@chromium.org/10828042/6009
8 years, 4 months ago (2012-07-30 23:46:23 UTC) #10
commit-bot: I haz the power
Change committed as 149101
8 years, 4 months ago (2012-07-31 01:07:46 UTC) #11
not at google - send to devlin
Yep, sweet. To test the warmup requests you can just create a MockRequest with '_ah/warmup' ...
8 years, 4 months ago (2012-07-31 06:04:36 UTC) #12
cduvall
8 years, 4 months ago (2012-07-31 17:56:35 UTC) #13
On 2012/07/31 06:04:36, kalman wrote:
> Yep, sweet.
> 
> To test the warmup requests you can just create a MockRequest with
'_ah/warmup'
> as its path, right?
> 
> Then check that stuff has been warmed up, somehow. Worth doing in a different
> test case.
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> File chrome/common/extensions/docs/server2/appengine_wrappers.py (right):
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> chrome/common/extensions/docs/server2/appengine_wrappers.py:7: # This will
> attempt to import the actual Appengine modules, and if it fails,
> nit: (here an below), it's "App Engine" not "Appengine".
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> File chrome/common/extensions/docs/server2/branch_utility_test.py (right):
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> chrome/common/extensions/docs/server2/branch_utility_test.py:16:
> AppEngineMemcache(''))
> yeah ok, I guess it'd be redundant to have two different in-memory
> implementations. cool.
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> File chrome/common/extensions/docs/server2/in_memory_memcache.py (right):
> 
>
https://chromiumcodereview.appspot.com/10828042/diff/6009/chrome/common/exten...
> chrome/common/extensions/docs/server2/in_memory_memcache.py:12: def set(self,
> key, value, namespace, time=60):
> this has different interface to AppEngineMemcache now, and it's kind of
changed
> meaning (now it's a fake interface to the appengine API, but previously it was
a
> fake interface to our own appengine wrapper).
> 
> So could you move it into appengine_wrapper.py?

Made these fixes in https://chromiumcodereview.appspot.com/10823105/

Powered by Google App Engine
This is Rietveld 408576698