lp://staging/glance/austin

Created by Rick Harris and last modified
Get this branch:
bzr branch lp://staging/glance/austin
Members of Glance Core security contacts can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Glance Core security contacts
Project:
Glance
Status:
Development

Recent revisions

18. By Jay Pipes

packaging fixups preparing for release candidate

17. By Jay Pipes

awesomeness. merging into trunk since my parallax-api is already in trunk I believe. :)

16. By Rick Harris

This patch removes unique index on the 'key' column of image_metadatum and replaces it with a compound UniqueConstraint on 'image_id' and 'key'. The 'key' column remains indexed.

Adds tests to ensure that two different images can use the same key, while preventing a single image from having two keys with the same name.

15. By Rick Harris

Fixes lp653358

Using swift.common.client rather than python-cloudfiles for Teller's Swift backend.

14. By Jay Pipes

Implements Parallax API call to register a new image

* Adds unit test for Parallax API controller
* Adds stubouts for glance.parallax.db.sqlalchemy.api calls
  regarding images
* Adds unittest for bad status on image creation
* Adds --logging-clear-handlers arg to nosetests in run_tests.sh to
  prevent extra output in running tests when tests complete successfully

13. By Rick Harris

Works around non-RFC compliance in Python (< 2.6.5) urlparse library.

12. By Jay Pipes

This patch overhauls the testing in Glance:

* Adds Nova-like run_tests.sh and tools/* files to automatically run unit tests in a virtual environment. Just do ./run_tests.sh -V from project root. All required dependencies will be installed into a new virtual environment at .glance-venv.
* Adds proper mocking and stubouts using pymox. This removes the need for all the FakeParallaxAdapter and similar code. Unit tests now call stubs.stub_out_parallax(), etc instead of having swiftfakehttp.py and similar code.

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.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.