Statistics
| Branch: | Tag: | Revision:

root / api / tests.py @ 838c404d

History | View | Annotate | Download (21.2 kB)

# Date Author Comment
5fb55fba 04/01/2011 11:46 am Georgios Gousios

Restructure authentication mechanism.

Move authentication mechanism to the correct place, implement a dummy
decorator, some test data etc

8a88551c 03/31/2011 11:39 am Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
api/handlers.py
api/tests.py

e646ebe5 03/30/2011 11:38 pm Dimitris Moraitis

pep8 compliance

dbccf323 03/29/2011 02:13 pm Vassilios Karakoidas

Fixed some issues in api/tests.py

a237869d 03/28/2011 03:23 pm Faidon Liambotis

Be consistent about the use of simplejson

simplejson was merged into Python 2.6's stdlib as json. To help with
that and avoid external dependencies, Django provides a utils.simplejson
module that either imports Python's json module or imports an embedded...

34244492 03/23/2011 09:44 pm Markos Gogoulos

add testServerPolling test

check if the polling works as expected

  • get the list of servers
  • get the list using changes_since. Expect no changes
  • create a server
  • get the list using changes_since. Expect the server to be there
4e6f9904 03/23/2011 06:25 pm Markos Gogoulos

remove description fields for VM, Image

  • remove description from VirtualMachine model, handlers and tests
  • return images metadata (as on servers). for now return image.description as image.metadata.meta.key.description

Ref #185

7e2f9d4b 03/18/2011 08:04 pm Giorgos Verigakis

Initial commit for API 1.1 REDUX.

- Implemented servers section of the API
- Some new tests

Work in progress.

Refs #301

b335768e 03/15/2011 09:33 pm Markos Gogoulos

changes related to Openstack naming

  • change imageId to imageRef
  • change flavorId to flavorRef
  • add updated+created attributes on serverhandlerss response for servers
a8acbbac 03/07/2011 12:32 pm Markos Gogoulos

add virtual machine group tests

added 4 tests regarding VirtualMachineGroups: * testVMgroupList, that tests if the expected list of groups is returned by the API * testVMgroupDetails, that tests if the expected virtual machine group is returned by the API...

73469364 03/07/2011 11:06 am Markos Gogoulos

changes on update name (and metadata, in future)

  • move update from ServerActionHandler to ServerHandler
  • add testServerMetadata test that edits a server's name via a PUT call.
    At the moment it is not working, due to django-piston and PUT issues
f3af8b40 03/06/2011 07:37 am Dimitris Moraitis

minor test optimization

ffffd5fe 03/02/2011 01:08 pm Markos Gogoulos

improve exception handling on api/handlers

add missing try except blocks on FlavorHandler, ImageHandler, ServerHandler

54c30633 03/01/2011 08:37 pm Markos Gogoulos

update tests

  • update/extend tests: testServerList, testAPIVersion, testFlavorsDetails, testImagesDetails
d2e5f1d1 03/01/2011 05:53 pm Markos Gogoulos

use variables on api tests.py

use variables instead of strings, for server/image/flavor ids

685ab2b6 02/26/2011 06:25 pm Markos Gogoulos

add more unit tests

For example:

  • testServersDetails that tests if the correct servers details are returned by the API
  • testWrongServer that tests if a wrong server is asked if a 404 is returned
  • testActions (reboot, shutdown, start, delete) that test if each action is run as expected
285a1fa8 02/26/2011 12:20 am Dimitris Moraitis

improve API compliance of the create instance handler

668c1361 02/25/2011 09:00 pm Markos Gogoulos

add unit tests regarding the RS API

added 6 working tests and stubs for 12 more. Two examples:

  • testServerDetails, which checks if the details of a requested
    server returned by the API are the same as on the database.
    Also expects 200 or 203 as the response status code...
7de0c985 02/25/2011 06:34 pm Dimitris Moraitis

initial create server tests, still some way to go

6781c0d0 02/25/2011 05:21 pm Dimitris Moraitis

add api test fixtures and test if the API returns the expected number of servers

894f6b7e 02/25/2011 04:58 pm Dimitris Moraitis

initial api tests