Statistics
| Branch: | Tag: | Revision:

root / api / tests.py @ c130b56e

History | View | Annotate | Download (38.7 kB)

# Date Author Comment
53481544 10/11/2011 04:41 pm Vangelis Koukis

Fix failing tests after fixture refactoring

Fix failing tests after fixture refactoring, refs #1263

faf93406 10/05/2011 01:35 pm Giorgos Verigakis

Fix failing tests

Tests needed users.json that was separated from
intial_data.json

7cc3c7d9 10/03/2011 05:11 pm Giorgos Verigakis

Change Update Metadata to create non-existing keys

Update Metadata methods for servers and images
used to ignore keys that did not exist. This patch
will create them instead.

Refs #1403
Refs #1399

7395dbf8 07/27/2011 07:17 pm Vangelis Koukis

Merge branch 'api-current'

d54cd53a 07/26/2011 06:18 pm Giorgos Verigakis

Bugfix

c25cc9ec 07/25/2011 01:23 pm Vangelis Koukis

Update handling of 'ganeti-create-progress' notifs

Update handling of 'ganeti-create-progress' notification messages: * update format of 'ganeti-create-progress' notifications * update relevant unit test accordingly * numerous PEP8 fixes in logic and api test code

f90c3d8c 07/07/2011 04:54 pm Vangelis Koukis

Make server deletion complete asynchronously

Make server deletion complete asynchronously, by only setting
the deleted flag for an instance of the VirtualMachine model when
an OP_INSTANCE_REMOVE operation completes successfully at the backend.

This means that DELETE /servers/id returns HTTP 204, the server...

6a0e1a00 07/01/2011 12:11 pm Giorgos Gousios

Add exclude for API calls in AAI middlware

Fixes 3 failed tests

ccd0d474 06/28/2011 01:07 pm Giorgos Verigakis

Limit the number of VMs a user can create

Controlled by the MAX_VMS_PER_USER setting.

Fixes #703

23f2683f 06/21/2011 06:33 pm Giorgos Verigakis

Do not randomize the owners used for the tests

a191bd4d 06/21/2011 01:07 pm Giorgos Verigakis

Merge branch 'master' of https://code.grnet.gr/git/synnefo into api-current

Conflicts:
api/images.py
api/networks.py
contrib/ganeti-hooks/kvm-vif-bridge
db/fixtures/images.json
db/models.py
logic/backend.py
logic/tests.py
settings.py.dist
tools/cloud

adee02b8 06/17/2011 12:48 am Giorgos Verigakis

Add proper license headers

f533f224 06/03/2011 04:35 pm Vangelis Koukis

Merge branches api-current and ui-0.4, minor fixes

Merge branches api-current and ui-0.4: * Fix merge conflicts * Fix minor bug in reconciliation mgmt command * Add comments in settings.py.dist * minor PEP8 fixes

a3992827 05/31/2011 07:23 pm Giorgos Verigakis

Make Network and NetworkLink relation explicit

DB migration needed.

207b70d5 05/31/2011 05:06 pm Giorgos Verigakis

Network improvements

  • Make backend functions transactional.
  • Only one network can be public and it has the id 'public'.
  • The public network can not be deleted or modified.
  • firewallProfile is optional
64938cb0 05/29/2011 04:37 pm Giorgos Verigakis

Connect networks API with the Ganeti

  • Create Ganeti network link when creating a network.
  • Delete the link when deleting the network.
  • Use a pool of GANETI_MAX_LINK_NUMBER network links.
  • Adding or removing a server from a network requires reboot.

A database migration is needed....

d44c236b 05/25/2011 06:23 pm Giorgos Verigakis

Refactor networks

  • VirtualMachines can have a number of nics that are attached to networks.
  • Networks can also be public
  • VirtualMachines can be attached to public networks that they don't own.
  • There is a special public network (id 1) that can't be deleted....
c9fdfa27 05/20/2011 11:22 am Giorgos Gousios

Add expires field for auth token

Refs: #483

197398e2 05/16/2011 07:27 pm Giorgos Verigakis

Ignore updated field

API was changed to include an updated field in networks.

aa197ee4 05/10/2011 01:35 pm Vangelis Koukis

Fix redundant whitespace at end of lines

Remove all unecessary whitespace at end of lines.
See
http://stackoverflow.com/questions/5257553/coloring-white-space-in-git-diffs-output

for a way to have git highlight redundant whitespace automatically.

865fd434 05/10/2011 01:25 pm Vangelis Koukis

Merge branch 'api-current' into ui-0.3

Conflicts:
api/tests.py

aa519091 05/09/2011 07:16 pm Giorgos Gousios

Simple test for requests with out X-Auth-Tokens

1428a464 05/09/2011 03:37 pm Giorgos Gousios

Move and fix test cases to the appropriate locations

b19653d1 05/06/2011 04:13 pm Giorgos Verigakis

Change networks to use numeric ids

Fixes #457

13b954b0 05/05/2011 01:49 pm Giorgos Verigakis

Add tests for networks and some bug fixes

Fixes #409

111f6d5b 05/03/2011 01:59 pm Giorgos Verigakis

Improved image tests

40777cc8 04/19/2011 03:56 pm Giorgos Verigakis

Add support for users

  • Tests use a hardcoded token
  • cloud tool uses a hardcoded token
  • Bugfixes

Fixes #423

529178b1 04/15/2011 02:13 pm Giorgos Verigakis

Code clean up

  • Moved rapi related stuff in logic
  • Added messages to all raised Faults
  • Updated console format
  • Removed unused fixture
  • Better imports
  • Docstring bugfixes
4cf8adf8 04/13/2011 11:22 pm Vangelis Koukis

Change console req/response format, add unit tests

Change the format of JSON requests and replies for getting
a server console over VNC. Fix the cloud command-line tool to
understand the new format.

Add unit tests for api/actions.py:get_console().

Add a quick-n-dirty method of detecting if we're running unit...

7317d130 04/13/2011 07:19 pm Giorgos Verigakis

Fix API calls that depend on specific server ids

Fixes #417

53b1eea6 04/13/2011 07:12 pm Giorgos Verigakis

Improve metadata tests

Refs: 417

80da6543 04/13/2011 12:37 pm Giorgos Verigakis

Clarify the units of ram and disk

ba6ded2a 04/12/2011 07:08 pm Giorgos Verigakis

Improve metadata tests

968b3e04 04/12/2011 03:12 pm Giorgos Verigakis

Add tests for server metadata API methods

ba15eb15 04/08/2011 12:32 pm Vangelis Koukis

Fix one API test failing with PostgreSQL backend

One API test (test_servers_details) was too restrictive and failed
with the PostgreSQL backend. It assumed consistent, by-id ordering
between DB and API server list replies, and failed although there was
1-1 correspondence between the two replies....

7f63ff66 04/07/2011 01:32 pm Giorgos Verigakis

Add a check for the return code

8b01f7f3 04/07/2011 01:09 pm Giorgos Verigakis

Add a Date header in responses

Make use of it in tests.

009d3bf2 04/07/2011 12:29 pm Giorgos Verigakis

Check for values inside servers

883de713 04/05/2011 06:16 pm Giorgos Verigakis

Port tests to the new API

manage.py test api should work now

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