Statistics
| Branch: | Tag: | Revision:

root / api @ 5509b599

# Date Author Comment
5509b599 05/16/2011 06:36 pm Giorgos Verigakis

Update timestamps when metadata/networks change

Applies to servers and images.

Fixes #525

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

97e56881 05/10/2011 01:17 pm Vangelis Koukis

Fix test token duration, minor bug in API

Modify db/fixtures/initial_data.json and settings.py.dist to
fix the duration of the test token.

Fix minor bug in api/util.py when no valid SynnefoUser
could be found or the provided X-Auth-Token was invalid.

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

22aee0fb 05/09/2011 02:20 pm Giorgos Gousios

Split aai middleware into two instances

One instance guards the API (and returns 401 if the user is unauthorized), one protects the other content and redirects to Sibboleth

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

dca6520b 05/03/2011 06:30 pm Giorgos Verigakis

Rename server argument to serverRef

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

Improved image tests

e2ee7808 05/03/2011 01:59 pm Giorgos Verigakis

Previous commit was incomplete

0269afd6 05/03/2011 12:29 pm Giorgos Verigakis

Add initial networks support

Refs #409

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

175ffa73 04/19/2011 11:49 am Giorgos Verigakis

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

5231a38a 04/15/2011 07:08 pm Giorgos Verigakis

Raise if vm is deleted or being built

Fixes #351

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
733ab79b 04/15/2011 11:14 am Georgios Gousios

Merge branch 'master' into auth-mechanism

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

5495cf1c 04/12/2011 07:10 pm Giorgos Verigakis

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

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

Improve metadata tests

1be508e9 04/12/2011 07:06 pm Vangelis Koukis

Support dynamic port allocation for VNC console

Add new version of vapclient.py from commit 48b1400eff
of vncauthproxy (dynamic port pool allocation, JSON control
requests and replies).

Modify api/actions.py to request dynamic port allocation
and handle error conditions gracefully.

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

Add tests for server metadata API methods

0a73c22f 04/12/2011 02:11 pm Giorgos Verigakis

User-defined exceptions should inherit Exception

52ddd0e7 04/12/2011 01:31 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
api/fixtures/api_test_data.json
api/tests.py

25380811 04/12/2011 01:20 pm Georgios Gousios

Rename auth to aai and put all aai related stuff in it

manage.py had trouble running tests from auth (confirmed with
[verigak]), and is also a good idea to have all aai stuff in
one reusable place ([vkoukis]'s idea)

d115929c 04/11/2011 02:53 pm Giorgos Verigakis

Only return the updated metadata

9a6eacb9 04/11/2011 03:01 am Vangelis Koukis

Handle errors in API action for VNC console

Handle errors in the get_console() server action and return
appropriate cloudFaults.

Remove the vncauthproxy/ directory, since vncauthproxy
has its own repository under https://code.grnet.gr.

Add new version of util/vapclient.py from commit 035424b630...

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....

57e59589 04/07/2011 03:09 pm Georgios Gousios

All Shibboleth-based tests pass

Now, we need to test it against a real installation

fe2a6886 04/07/2011 01:50 pm Giorgos Verigakis

Query for greater since or equal

faa26af8 04/07/2011 01:36 pm Georgios Gousios

Make most tests pass

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

Add a check for the return code

cdb65551 04/07/2011 01:31 pm Giorgos Verigakis

Date header is only required for the test-server

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

860412e0 04/07/2011 11:57 am Giorgos Verigakis

Merge branch 'api-current' into api-tests

8c796300 04/07/2011 11:54 am Giorgos Verigakis

Add empty models.py

Django requires it.

71a2be7d 04/06/2011 08:03 pm Georgios Gousios

New test

df50f56f 04/06/2011 06:12 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

Conflicts:
settings.py.dist

1896d262 04/06/2011 06:08 pm Georgios Gousios

Fixes to pass some shibboleth related tests

77f6bb0e 04/06/2011 12:41 pm Giorgos Verigakis

We import getfqdn, not socket

4f598167 04/06/2011 11:36 am Giorgos Verigakis

Use more specific exceptions

f7df1cef 04/06/2011 11:11 am Giorgos Verigakis

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

aea3e7c6 04/06/2011 10:42 am Vangelis Koukis

Use server's FQDN in API reply for VNC console

bbbe2cfa 04/05/2011 10:42 pm Vangelis Koukis

Fix breakage in get_console() action

1c03e74e 04/05/2011 09:11 pm Vangelis Koukis

Really delete the VM if CreateInstance() fails

76ba77c1 04/05/2011 08:54 pm Vangelis Koukis

Fix bugs in api/server.py:create_server()

Fix bugs in server creation, in api/server.py:create_server().
More specifically: * Make sure to save() the vm object before calling vm.backend_id * Delete the vm instance if the RAPI call fails for any reason * Use different variable names for the server name at the API level...

0140e54b 04/05/2011 08:16 pm Vangelis Koukis

Have isoparse return naive datetimes, fixes #377

Have api/util.py:isoparse() return naive datetime objects, in UTC.
Fixes #377.

dc3ad42e 04/05/2011 06:39 pm Giorgos Verigakis

Add missing fixture file

4fd67656 04/05/2011 06:38 pm Giorgos Verigakis

Merge branch 'api-current' into api-tests

e87d30f3 04/05/2011 06:37 pm Giorgos Verigakis

Immediately convert dates to naive format

Please verify that it fixes #377

Refs: #377

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

Port tests to the new API

manage.py test api should work now

7584d408 04/05/2011 05:52 pm Giorgos Verigakis

description has been removed from image

bc855ce7 04/05/2011 05:39 pm Giorgos Verigakis

Allow create_server to set initial metadata

838c404d 04/05/2011 05:39 pm Giorgos Verigakis

size has been removed from Image

dbf97ed2 04/05/2011 04:29 pm Georgios Gousios

Authentication routine, with comments

2627cd84 04/05/2011 04:27 pm Giorgos Verigakis

Add missing import

c4c07cab 04/05/2011 02:38 pm Giorgos Verigakis

Add describedby links in version details

a76c4fbc 04/05/2011 02:19 pm Giorgos Verigakis

description field has been removed from Image

dd53338a 04/05/2011 02:16 pm Georgios Gousios

Make tests fail gracefully with assertions.

Also correct spelling of the word shibboleth

432fc8c3 04/05/2011 01:21 pm Giorgos Verigakis

Add metadata support in Images

Removed description and size from Image model.

036da2d2 04/04/2011 04:08 pm Georgios Gousios

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

Conflicts:
settings.py.dist

462c7e47 04/04/2011 04:03 pm Georgios Gousios

Simplistic implementation of Sibbolleth header parsing

7e45ddef 04/04/2011 03:58 pm Dimitris Moraitis

api 1.1 compatibility improvements - Refs #311

44193110 04/04/2011 03:04 pm Georgios Gousios

User deletion test

22afb635 04/04/2011 02:37 pm Vangelis Koukis

Fix atom metadata, make GUI use API_URL everywhere

20a51b1e 04/04/2011 02:21 pm Giorgos Verigakis

Merge branch 'master' into api-redux

Conflicts:
api/actions.py
api/errors.py
api/handlers.py
api/helpers.py
api/servers.py

f0656db1 04/04/2011 02:00 pm Giorgos Verigakis

Return correct content-type on faults

de53d31c 04/04/2011 01:03 pm Georgios Gousios

Merge branch 'master' into auth-mechanism

420f2c20 04/04/2011 12:16 pm Georgios Gousios

Some code and fixture data for authentication

d8e50a39 04/04/2011 12:21 am Giorgos Verigakis

Move to OpenStack API v1.1

  • Removes piston dependency.
  • Adds dateutil dependency.

Fixes #183 - Implement /servers
Fixes #185 - Implement /images
Fixes #245 - Details in exception handlers
Fixes #249 - Metadata handling
Fixes #253 - Transition to OpenStack API v1.1...

09471611 04/03/2011 03:19 am Vangelis Koukis

Extend api/v1.1redux to support VNC OOB consoles

Add support in api/v1.1redux for OOB consoles using VNC, refs #349.
More specifically: * Implement a new action ("console") for POST to /servers/id/action. * Extend api/servers.py to pass the Django request object to actions....

038383b1 04/02/2011 07:45 pm Dimitris Moraitis

detailed error handling & iso8601 compatibility - Refs #213 #363

ef39e7ee 04/01/2011 04:52 pm Georgios Gousios

Some coding before enlighting discussion w/ faidon

89f86fd3 04/01/2011 01:50 pm Georgios Gousios

Custom middleware to support authentication

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

f1641e4d 03/31/2011 06:14 pm Markos Gogoulos

fix flavors to use api 1.1redux

  • add cpu attribute returned on flavor(s) listing
  • use api 1.1redux on gui for flavors
0971fa71 03/31/2011 04:47 pm Markos Gogoulos

implement server actions on gui for api/v1.1redux

  • implement server reboot/shutdown/start/destroy actions
  • fix ordering on imports (servers.py, actions.py)
  • actions.py: change type to reboot_type (reserverd word)
  • change vm.start_action to backend.start_action where needed...
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

dfd19c2d 03/30/2011 09:47 pm Vassilios Karakoidas

All VirtualMachine fields are now pubic

  • Update VirtualMachine reference in all modules
  • Updated fixtures accordingly (and tests)
a9b86546 03/30/2011 04:10 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
README

1d4fb95b 03/30/2011 01:18 pm Georgios Gousios

Remove unused imports

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

Fixed some issues in api/tests.py

5abebfaa 03/29/2011 01:53 pm Vassilios Karakoidas

All unit tests are executed in the refactored code

  • All functionality is achieved through the logic layer
c63e332f 03/28/2011 06:41 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
db/db_controller.py

8d97deff 03/28/2011 03:53 pm Vassilios Karakoidas

Still refactoring, separating the logic and the ORM layer

  • Moved all tests (except one) into the logic app
  • Introduced (again) utils.py, moved miscellaneous functions there
  • models.py has now minimal functionality (ui->logic->db)
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...

183149e6 03/28/2011 02:27 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring

Conflicts:
db/models.py

d8b7ab6d 03/24/2011 09:12 pm Dimitris Moraitis

return DELETED in _get_rsapi_state - Fixes #293

54f8cd6d 03/24/2011 05:26 pm Markos Gogoulos

fix server and image polling

add variable POLL_LIMIT (initially 1h) on settings.py that
is the maximum time allowed to ask if there have been changes, using
the changes-since GET variables. Return badRequest if this limit is exceeded
on a query

29a59bc1 03/24/2011 04:08 pm Giorgos Verigakis

Use the json module bundled by Django

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
c5a032c4 03/23/2011 08:26 pm Markos Gogoulos

fix server polling support

  • add function ISODateString that gets the jqXHR.getResponseHeader('Date') and returns changes_since GET variable on ISO 8601 format
  • add changes_since mechanism on GET images too

Ref #291

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

b0bc0d35 03/23/2011 05:37 pm Giorgos Verigakis

More flexible Accept header handling

Fixes #313