History | View | Annotate | Download (10.9 kB)
cyclades: add test for 400 in wrong Plankton paths
cyclades: fix variable name in plankton tests
cyclades: fix URLs in cyclades/image tests
plankton: Cleanup and improve code
Improve performance in listing images
Use '_get_domain_objects' function of Pithos backend, to list allobjects in a 'plankton' domain, instead of looping over all accessibleaccounts, containers and objects. This function also returns metadataand permissions for each object in order to avoid two extra calls for...
plankton: raise BadRequest for invalid location
Modify 'add_image' plankton API method, to check that location parameteris a valid Pithos url, and raise BadRequest if not.
Move common test code to snf_django.lib.testing
Use the common 'api_method' decorator in plankton
Use the common 'api_method' decorator in all plankton API methods.Modify the 'plankton_method' decorator to only create and closethe ImageBackend.
Delete Image without deleting file from Pithos
Until now, deleting an image resulted in deletion of the correspondingfile from Pithos. Plankton Images are files in Pithos with specialmetadata on the 'plankton' metadata domain. Adding an Image to plankton...
Add plankton test
Add test for malformed filter when listing images.
Fix pep8 warnings
Add basic tests for plankton
Refactor some test code