lp:~rackspace-titan/glance/glance-clear-lp766295
- Get this branch:
- bzr branch lp:~rackspace-titan/glance/glance-clear-lp766295
Branch merges
- Jay Pipes (community): Approve
- Dan Prince (community): Approve
-
Diff: 83 lines (+25/-3)2 files modifiedbin/glance (+23/-1)
tests/functional/test_bin_glance.py (+2/-2)
Related bugs
Bug #766295: glance clear should prompt before deleting all images | Low | Fix Released |
Related blueprints
Recent revisions
- 117. By Eldar Nugaev
-
Fixing tests.
Sorry for late response.Rick Harris wrote on 2011-04-12
Really nice job, Eldar.> 46 + image_swift = StringIO.
StringIO( "nevergonnamake it")
> 47 + options = SWIFT_OPTIONS.copy()
> 48 + del options['swift_ store_user' ]
> 49 + self.assertRaises(BackendExcep tion,
> 50 + SwiftBackend.add,
> 51 + 2, image_swift, options)Might be better to DRY up the code some by adding a helper-method, like:
def assertOptionReq
uiredForSwift( self, key):
image_swift = StringIO.StringIO( "nevergonnamake it")
options = SWIFT_OPTIONS.copy()
del options[key]
self.assertRaises( BackendExceptio n,
SwiftBackend.add,
2, image_swift, options)Marking as Needs Fixing, but if you don't like the idea, I'd be willing to set this as Approved (since the suggestion is so minor :-)
- 115. By Soren Hansen
-
Fake merge with ancient trunk. This is only so that people who "accidentally" have been following lp:~hudson-openstack/glance/trunk will not have problems updating to this.
- 113. By Jay Pipes
-
Removes capture of exception from eventlet in _upload_
and_activate( ), which catches the exceptions that come from the _safe_kill() method properly. Also fixes an incorrect call to _safe_kill() with mapping instead of image ID in the block of code that kills an image if a bad checksum is given.
Fixes bug #759018.
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