lp:~jaypipes/glance/testing-overhaul

Created by Jay Pipes and last modified
Get this branch:
bzr branch lp:~jaypipes/glance/testing-overhaul
Only Jay Pipes can upload to this branch. If you are Jay Pipes please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Jay Pipes
Project:
Glance
Status:
Merged

Recent revisions

14. By Jay Pipes

unittest2 -> unittest. For now, since not using unittest2 features yet.

13. By Jay Pipes

Fixes up test_teller_api.py to use stubout correctly. Fixes a few bugs that showed up in the process, and remove the now-unnecessary FakeParallaxAdapter.

12. By Jay Pipes

First round of cleaning up the unittests. Adds test suite runner, support for virtualenv setup and library dependencies, resolves issues with ImportErrors on cloudfiles, adds pymox/stubout support and splits the backend testing into distinct unittest cases.

11. By Rick Harris

With this patch Parallax and teller now work end-to-end with the Swift backend.

bash-3.2$ curl localhost:9292/image?uri=http://localhost:9191/images/2 > testimg.tar.gz
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 189M 0 189M 0 0 203k 0 --:--:-- 0:15:52 --:--:-- 214k

bash-3.2$ md5 testimg.tar.gz
MD5 (testimg.tar.gz) = ef6c5db4f55b0030828b71dd253a2384

10. By Rick Harris

This patch:
  * Decouples Controller for ParallaxAdapter implementation by adding generic RegistryAdapter and providing a lookup function
  * Adds base model attributes to Parallax's JSON (created_at, etc)

9. By Christopher MacGown

Rewrote ImageController to inherit from the work Rick Harris did in glance.common. Moved it into teller/api/images.py to make teller match parallax. Fixed tests. Renamed them to distinguish if any parallax tests ever get written.

8. By Rick Harris

This patch:
  * pulls in a number of useful libraries from Nova under the common/ path (we can factor those out to a shared library in Bexar-release)
  * Defines the models in common.db.sqlalchemy.models.py (this should be factored out into the parallax package soon)
  * Adds the parallax api-server under /bin (if PyPI was used to pull python-daemon and python-lockfile, you may need to apply a patch I have against it)

7. By Christopher MacGown

Changes the obj['uri'] to obj['location'] to better sync with the representation within Nova. Adds the image_lookup_fn = ParallaxAdapter.lookup to teller.server

6. By Christopher MacGown

Implements a Parallax adapter for looking up images requested from nova. Adds a size check to SwiftBackend to ensure that the chunks haven't been truncated or anything.

5. By Jay Pipes

Makes glance a module, containing teller and parallax sub-modules.

Makes tests and tests.unit packages so nosetests will find the unit tests.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~hudson-openstack/glance/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers