Commit Graph

217 Commits

Author SHA1 Message Date
Jeff Kaufman 88b3713c15 system-test: check that we respect no-transform 2013-04-04 10:47:29 -04:00
Jeff Kaufman bd38510760 system-test: PreserveURLs 2013-04-04 10:26:54 -04:00
Jeff Kaufman f3636bc5ba system-test: test RetainComment 2013-04-03 17:36:27 -04:00
Jeff Kaufman 800bbd0409 trunk-tracking: use System and support cache flushing
Use SystemRewriteDriverFactory.
Use SystemServerContext.
Wire up FlushCacheIfNecessary().
Port cache flushing tests.
2013-04-03 10:51:58 -04:00
Jeff Kaufman 2d0996210e request-headers: support X-Forwarded-Proto 2013-04-03 10:25:36 -04:00
Jeff Kaufman 4e2a7c5bcf system-test: port simple tests, all are exact copies from apache 2013-04-02 18:14:01 -04:00
Jeff Kaufman d91dc8b2e8 system-test: check loopback fetcher works with vhosts on alternate ips 2013-04-02 17:14:33 -04:00
Jeff Kaufman 06a85d5ce5 options: default to core filters 2013-04-02 10:41:06 -04:00
Jeff Kaufman 768ba6a64f system-test: clear cache; simpler init
* always run with a clean cache
 * in the future we should structure the tests so they run twice, once with a clean cache and then again with a populated one, but for now a clean cache should catch more bugs
* stop requiring a file cache path for tests; just use
* fix exit codes to match documentation at the top of the file: 1 is a test failure, 2 is bad args

Squash-merge of my #198.
2013-03-29 11:37:17 -04:00
Jeff Kaufman 51ebf51b4e system-test: infrastructure, host validation
We are going to need some nginx-specific system tests, and this seemed like a
good place to start. This adds two tests, as well as some infrastructure. With

Squash-merge of my #194 and #195
2013-03-28 13:39:03 -04:00
Jeff Kaufman 7152e5498c trunk-sync: we also fail ipro testing because its not ported 2013-01-23 14:37:08 -05:00
Jeff Kaufman 51bc7e73df trunk-sync: system_test_trailer renamed to check_failures_and_exit 2013-01-23 14:36:30 -05:00
Jeff Kaufman 814e0c18f2 rewrite driver factory: start a scheduler thread
Because we're a non-blocking server we need to run a scheduler thread or else
alerts we set might not fire.  We need to be careful to start it after we fork.

Better long term would be to use an nginx timer and avoid the extra thread;
tracking this in #111.

Fixes #55
2012-12-19 10:59:04 -05:00
Jeff Kaufman 9cd5f3b19c request context: deal with changes in pagespeed's api
The pagespeed api for handling logs has changed, we need to change with it in
order to build against the latest pagespeed optimization libraries.

Separately, a new test was added to the generic system test that depends on the
property cache (insert_dns_prefetch).  We've not ported the property cache yet,
so this test will fail, and I've added it to the list of failing tests.
2012-12-17 10:57:18 -05:00
Jeff Kaufman 14c7fb1c8d system test: use PAGESPEED_EXPECTED_FAILURES for known bad tests 2012-11-30 17:12:13 -05:00
Jeff Kaufman 72b1b98bb9 content handler: support static javascript requests
Requests to:

  /ngx_pagespeed_static/...

can be handled synchronously by pagespeed.  They're used for support files for
optimizations, like js_defer.js.

This also includes a couple refactors:

 - I pulled most of NgxBaseFetch::CopyBufferToNginx() out into
   ngx_http_pagespeed_string_piece_to_buffer_chain().

 - ngx_http_pagespeed_create_request_context() now returns a
   CreateRequestContext::Response which gives callers more detailed information
   about the request.

 - I also pulled ngx_http_pagespeed_set_cache_control() out of
   ngx_http_pagespeed_header_filter().

Fixes issue #62.
2012-11-19 16:29:25 -05:00
Jeff Kaufman eda3a913f9 Add script to run system test, remove temporary test files 2012-11-05 10:03:38 -05:00