Statistics
| Branch: | Tag: | Revision:

root / db / fixtures / db_test_data.json @ 4f816236

History | View | Annotate | Download (4 kB)

# Date Author Comment
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

c9fdfa27 05/20/2011 11:22 am Giorgos Gousios

Add expires field for auth token

Refs: #483

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

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

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

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

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

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

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)