Merge lp:~frankban/launchpad/bug-1001520-memcache-warnings into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Francesco Banconi on 2012-06-05 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15363 | ||||
| Proposed branch: | lp:~frankban/launchpad/bug-1001520-memcache-warnings | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
338 lines (+85/-1) 11 files modified
lib/lp/app/browser/tests/test_launchpadroot.py (+10/-0) lib/lp/blueprints/browser/tests/test_specificationtarget.py (+13/-0) lib/lp/blueprints/browser/tests/test_views.py (+7/-0) lib/lp/bugs/browser/tests/test_bugcomment.py (+19/-0) lib/lp/bugs/tests/test_bugs_webservice.py (+5/-0) lib/lp/registry/browser/tests/test_distribution.py (+4/-0) lib/lp/registry/browser/tests/test_distroseries.py (+7/-0) lib/lp/registry/browser/tests/test_pillar_sharing.py (+4/-0) lib/lp/registry/browser/tests/test_projectgroup.py (+4/-0) lib/lp/registry/browser/tests/test_subscription_links.py (+8/-1) lib/lp/registry/tests/test_distribution.py (+4/-0) |
||||
| To merge this branch: | bzr merge lp:~frankban/launchpad/bug-1001520-memcache-warnings | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Benji York (community) | code | 2012-06-04 | Approve on 2012-06-05 |
|
Review via email:
|
|||
Commit Message
Updated tests generating Memcached warnings in test run output.
Description of the Change
= Summary =
We started seeing Memcached warnings in the stdout of test runs, both parallel and lpbuildbot tests.
This is caused by tests indirectly calling `memcache_
lp.services.
== Proposed fix ==
As Robert suggested in his comment to bug 1001520, we can use `fixtures.
This way we can attach the logs to the test result, and if the test fails, we still can retrieve logging info taking advantage of the testtools/fixtures details machinery. A `getDetails` method needs to be implemented in the FakeLogger: I am currently taking care of this, see https:/
== Implementation details ==
With I full test run I've found 69 tests generating 92 warnings, the list is here:
http://
Now the FakeLogger fixture is used by them all.
== Tests ==
Download the full list of tests (see above) and then run::
bin/test -vv --load-list my_list
You should not see memcache warnings.
== Demo and Q/A ==
no qa

Looks good.