Statistics
| Branch: | Tag: | Revision:

root / db / fixtures @ 68a73507

# Date Author Comment
68a73507 07/01/2011 12:28 pm Giorgos Gousios

Add max_invitations field to the two test users

Fixes problem with invitations test case failing as the max_invitations function returned None for the test user. Also discovered that in Python 0 > None !

32c20e24 06/21/2011 02:46 pm Giorgos Gousios

Merge branch 'api-current' into helpdesk-gui

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

5ac53b64 06/20/2011 03:35 pm Giorgos Gousios

Add helpdesk user group

Helpdesk users are registered statically using the HELPDESK user type.
The middleware will only allow impersonation requests from helpdesk
users.

75768d0e 06/20/2011 02:54 pm Giorgos Verigakis

Add a public attribute to Images

list_images now returns images that either match the owner, or
that are marked as public.

Fixes #555

Database migration needed.

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

e1cb42fe 06/03/2011 02:51 pm Vangelis Koukis

Merge branch 'images-0.4'

06a16b24 06/01/2011 02:08 pm Giorgos Verigakis

Use snf_null as the default link

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

Make Network and NetworkLink relation explicit

DB migration needed.

b804d6fd 05/30/2011 06:42 pm Nikos Skalkotos

Added new fixture for Fedora 15 Desktop image

fdd39b0f 05/27/2011 11:57 am Constantinos Venetsanopoulos

Add new fixture for Fedora 14 Image

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....
b7d29d41 05/25/2011 02:40 pm Constantinos Venetsanopoulos

Add initial support for different Image formats

Initial support for choosing between different Image formats:

  • New field in Image model (migration needed)
  • New lvm Image in fixtures
  • Minor fixes
c9fdfa27 05/20/2011 11:22 am Giorgos Gousios

Add expires field for auth token

Refs: #483

1ef58e5b 05/13/2011 07:09 pm Constantinos Venetsanopoulos

Initial commit for Image Support in Synnefo

Add Image Support in Synnefo, more specifically: * Add fixtures for 4 actual images * Add two more fields in Image model (backend_id, format) * Commit South migration for Image model * Modify create_instance() in logic/backend.py to pass OS parameters...

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.

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

Add initial networks support

Refs #409

a9543e4c 05/02/2011 05:54 pm Giorgos Verigakis

Add an owner to the image fixtures

84523ab8 04/19/2011 05:49 pm Giorgos Verigakis

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

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

10532027 04/12/2011 10:33 am Constantinos Venetsanopoulos

Added Image Metadata (OS, kernel) in fixtures

44e6ec18 04/07/2011 09:45 pm Vangelis Koukis

Fix broken db_test_data.json wrt to Image model

Removing the description field from the Image model
and moving it to ImageMetadata broke the fixtures in
db_test_data.json and the associated tests of the db app.

Tests for api, db, logic run properly.

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

Make most tests pass

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

Merge branch 'master' into auth-mechanism

Conflicts:
settings.py.dist

498728a8 04/05/2011 08:02 pm Vangelis Koukis

Fix Image fixtures, remove size attribute

Fix the fixtures for the Image model, removing references
to the size attribute, which no longer exists in the Image model
since commit 838c404d4.

Also fix unloadable fixtures, by removing stray comma chars
in JSON.

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.

808351b9 04/05/2011 10:55 am Georgios Gousios

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

f7cac984 04/04/2011 11:52 pm Markos Gogoulos

add description and size as metadata on db/fixtures/images

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

Merge branch 'master' into auth-mechanism

85bb192a 04/04/2011 12:55 pm Georgios Gousios

Fix order of test data to ensure proper insertion

This fixes an issue with DBs with proper referential integrity (e.g.
MySQL) where a VM cannot be inserted prior to an Image that is
referenced from it.

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

Some code and fixture data for authentication

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

Some coding before enlighting discussion w/ faidon

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

d972c81f 03/29/2011 02:10 pm Georgios Gousios

Remove non-existent description field

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)
a0f83bd2 03/09/2011 08:42 pm Vassilios Karakoidas

Implement unit tests for all charge() related methods

  • Modify the db_test_data.json to assist unit testing.
  • Introduced various refactorings to simplify code
2d405b6a 03/09/2011 05:07 pm Constantinos Venetsanopoulos

Added Image Metadata in fixtures (images.json)

34a619ae 03/04/2011 10:06 am Vangelis Koukis

Make owner a not null ForeignKey in VirtualMachine

Make owner a required, not null foreign key in VirtualMachine.
Also fix fixtures and the implementation of POST /servers to include
a proper owner value (everything gets to be owned by the single SynnefoUser...

f53a9423 03/03/2011 05:49 pm Vangelis Koukis

Add independent fixtures for the Image model

Add independent fixtures for the Image model in db/fixtures/images.json,
no dependencies from VirtualMachine instances.

8707738f 03/03/2011 03:15 pm Vangelis Koukis

Add README.DB, minor fixes to fixtures

Add new file README.DB with instructions for PostgreSQL and MySQL setups.
Modify fixtures to include definition of Images in definition of VMs
(vms.json), ensuring referential integrity.

a0d4498a 03/03/2011 01:09 pm Vangelis Koukis

Remove user field from SynnefoUser, minor fixes

Remove the "user" ForeignKey() field from the SynnefoUser model, since
we do not use Django's auth mechanism.
More specifically: * remove user ForeignKey() field * update fixtures for initial data, DB and API tests...

452d2391 03/02/2011 02:29 am Vassilios Karakoidas

Implemented Charger Functionality

  • Re-implemented the tests
  • Added functionality to all charger-related functions
  • Added functionality to the charger itself

The code needs still lots of testing

3c53cf3a 02/27/2011 08:09 pm Dimitris Moraitis

complete the rename of AccountingLog to Debid - fix breakage

The changes in d174b105e0fb3038bcf69623f3624f99f437ea3f broke the
app and the tests. The AccountingLog class had been renamed but
several references were left using the old name.

Also removed the violation attribute from fixtures since it was...

0a92f190 02/25/2011 05:32 pm Constantinos Venetsanopoulos

Add VirtualMachineMetadata values in fixtures

739bd6e8 02/25/2011 04:37 pm Constantinos Venetsanopoulos

Add values for 'size' and 'sourcevm' in Image fixtures

bf48028e 02/22/2011 08:14 pm Vassilios Karakoidas
  • SynnefoUser.monthly_rate deleted
  • Introduced three limits (MONTHLY_RATE, QUOTA_CREDIT, MAX_VIOLATIONS)
  • Added three test limits in db_test_data.json
  • mothly_rate, credit_quota, max_violations properties are now introduced in SynnefoUser class
eb66f1fe 02/22/2011 07:46 pm Vassilios Karakoidas
  • CreditAllocatorTestCase is working now properly
b4808d2b 02/22/2011 07:33 pm Vassilios Karakoidas
  • Image now includes Foreign Key relationship with VirtualMachine (sourcevm)
  • Fixed primary key ranges in db/db_test_data.json
60bf38e1 02/22/2011 06:22 pm Vangelis Koukis

Split initial_data.json, minor fixes in models.py.

Split initial_data.json into different fixtures, one for each model.
Fixtures can be loaded as needed using the loaddata command.
See the README for all the details.

Add a complete set of instances for the Flavor model....

52194743 02/22/2011 01:57 pm Vangelis Koukis

Update fixtures, introduce created/updated fields.

Introduce auto-generated created/updated fields in all models,
use two different fixtures, one for db initialization, one for testing. * All models have created/updated fields. * VirtualMachine model has an owner field....

29833195 02/22/2011 01:09 pm Christos Psaltis

moved fixtures to proper folder db/fixtures

6a94c3c4 02/22/2011 01:05 pm Christos Psaltis

renamed fixtures file so it can be called automatically

62c6d260 02/21/2011 01:52 am Vassilios Karakoidas
  • Implemented VirtualMachine.get_accounting_logs()
  • Added VirtualMachineTestCase unit test
  • Now the db_test_data adds AccountingLog entries for 1003 VM (also introduced some corrections in Disk models data
  • Working on the charger which is still completelly broken (along with the related test case)
e4c395b7 02/20/2011 11:26 pm Vassilios Karakoidas
  • Added AccountingLog entries to db_test_data.json
  • AccountingLogTestCase is corrected and works as intended
ec08e9ce 02/20/2011 11:18 pm Vassilios Karakoidas
  • Add db/fixtures/db_test_data.json fixture (data for testing)
d39ea372 02/20/2011 10:59 pm Vassilios Karakoidas
  • Removed initial_data JSON fixture
  • Fixtures are now loaded on unittesting as intended
  • Modified CreditAllocatorTestCase to load fixtures
90b28517 02/20/2011 10:26 pm Vassilios Karakoidas

CreditAllocator now uses Limit according to the changes to the model

  • CreditAllocatorTestCase has been modified to match the new requirements
  • CreditAllocatorTestCase also test Limit.get_limit_for_user() method
9071888e 02/18/2011 02:24 pm Constantinos Venetsanopoulos

Initial Disk Management API (DM API) implementation

The DM API is accessible under api/v1.0grnet1/ and
it extends the Rackspace Cloud Servers v1.0 API
for the use of Disks. Notable changes:

  • Added the "Disk" model in db/models.py
  • Added the "DiskHandler" in api/handlers.py...
dddb0035 02/16/2011 10:53 pm Vassilios Karakoidas

Setup/TearDown AccountingLogTestCase is finished

6d6b83a3 02/16/2011 08:50 pm Vassilios Karakoidas

FlavorTestCase works as intended; Add FlavorCostHistoryTestCase (in progress)

3f53219b 02/11/2011 02:23 pm Vassilios Karakoidas

updated initial data to test credit allocator testcase

0a2964a1 02/10/2011 06:45 pm Vangelis Koukis

Merge branch 'master' of https://code.grnet.gr/git/synnefo

78d9b6b7 02/10/2011 06:42 pm Vangelis Koukis

Private fields in VM model, updated fixtures

Updated names of fields pertaining to VM state in VirtualMachine model,
updated fixtures.

database.sqlite can be removed, use:

rm database.sqlite; python manage.py syncdb

to recreate it from fixtures.

562549e3 02/10/2011 12:24 pm Vassilios Karakoidas

Fix: fixtures now works correctly

b4141604 02/08/2011 06:21 pm Vangelis Koukis

Major fixes trying to integrate everything.

Most notable changes:
  • db/db_controller.py: Listens on 0mq, receives notifications from Ganeti, updates
    VM state in database calling methods of the VirtualMachine model.
  • Extended the VirtualMachine model:
    start_action() is to be called before submitting requests to Ganeti....