~wallyworld/goose/RunServer-userData-fix

Viewing all changes in revision 55.

  • Committer: Ian Booth
  • Date: 2013-01-29 13:23:18 UTC
  • mfrom: (51.2.5 rate-limit-retry-tests)
  • Revision ID: ian.booth@canonical.com-20130129132318-4hwqo5ocef9c9e4n
Rewrite rate limit retry tests

This branch uses the new service double control hooks introduced in the previous branch to rewrite the tests which check that rate limit exceeded retries are handled properly.
The kludge used previously to induce a retry error has been removed, and now an additional test can also be easily added to check the behaviour if too many rate limit retry responses are received.

So that the tests run fast, I've allowed for the Retry-After header value to be a float (even though a real instance only assigns an int). This means the tests can specify a really
short retry time (I used 1ms).

I've also re-added a rate limit retry test for use with the live instance, but improved it so that it exists as soon as the first rate limit exceeded response is received.

R=jameinel
CC=
https://codereview.appspot.com/7200049

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: