Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / plankton / tests.py @ 23808592

History | View | Annotate | Download (14.5 kB)

# Date Author Comment
23808592 02/26/2014 05:41 pm Christos Stavrakakis

cyclades: Major refactor to plankton backend

  • Rename ImageBackend to PlanktonBackend
  • Rewrite PlanktonBackend methods in order that they refer to Pithos
    objects by their UUID
  • Convert PlanktonBackend to context manager that is responsible for
    returning the PithosBackend connection back to the pool, and remove...
f7d0a71c 06/12/2013 03:36 pm Georgios D. Tsoukalas

cyclades: add test for 400 in wrong Plankton paths

66855d86 06/12/2013 12:44 pm Georgios D. Tsoukalas

cyclades: fix variable name in plankton tests

fdb15edb 06/12/2013 11:00 am Georgios D. Tsoukalas

cyclades: fix URLs in cyclades/image tests

cda71050 04/22/2013 10:10 am Christos Stavrakakis

plankton: Cleanup and improve code

Major refactor in plankton APP and ImageBackend code:
  • Remove unused code
  • Remove 'plankton_method' decorator that added an ImageBackend to
    requests an replace it with 'image_backend' context manager. This
    context manager is responsible for opening and closing connections...
14c94c48 04/22/2013 10:10 am Christos Stavrakakis

Improve performance in listing images

Use '_get_domain_objects' function of Pithos backend, to list all
objects in a 'plankton' domain, instead of looping over all accessible
accounts, containers and objects. This function also returns metadata
and permissions for each object in order to avoid two extra calls for...

59573532 04/22/2013 10:10 am Christos Stavrakakis

plankton: raise BadRequest for invalid location

Modify 'add_image' plankton API method, to check that location parameter
is a valid Pithos url, and raise BadRequest if not.

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing

d9d1763e 04/08/2013 11:06 am Christos Stavrakakis

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 close
the ImageBackend.

f13aab5d 04/02/2013 01:49 pm Christos Stavrakakis

Delete Image without deleting file from Pithos

Until now, deleting an image resulted in deletion of the corresponding
file from Pithos. Plankton Images are files in Pithos with special
metadata on the 'plankton' metadata domain. Adding an Image to plankton...

450a6d2b 02/15/2013 05:08 pm Christos Stavrakakis

Add plankton test

Add test for malformed filter when listing images.

cc92b70f 02/06/2013 02:18 pm Christos Stavrakakis

Fix pep8 warnings

37f87d98 12/19/2012 05:32 pm Christos Stavrakakis

Add basic tests for plankton

52194c77 12/19/2012 05:32 pm Christos Stavrakakis

Refactor some test code