lp:~jaypipes/glance/testing-overhaul
- Get this branch:
- bzr branch lp:~jaypipes/glance/testing-overhaul
Branch merges
- Rick Harris (community): Approve
-
Diff: 897 lines (+519/-129)15 files modified.bzrignore (+1/-0)
glance/parallax/controllers.py (+0/-8)
glance/teller/backends/__init__.py (+2/-15)
glance/teller/backends/http.py (+0/-2)
glance/teller/backends/swift.py (+7/-5)
glance/teller/controllers.py (+5/-2)
glance/teller/registries.py (+12/-28)
run_tests.sh (+66/-0)
tests/stubs.py (+149/-0)
tests/unit/test_teller_api.py (+34/-10)
tests/unit/test_teller_backends.py (+60/-59)
tests/utils.py (+27/-0)
tools/install_venv.py (+136/-0)
tools/pip-requires (+16/-0)
tools/with_venv.sh (+4/-0)
Related bugs
Related blueprints
Recent revisions
- 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 FakeParallaxAda
pter. - 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 --:--:-- 214kbash-3.2$ md5 testimg.tar.gz
MD5 (testimg.tar.gz) = ef6c5db4f55b0030828b71dd253a23 84 - 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.
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