| Branch: | Tag: | Revision:

root / db / @ ef39e7ee

History | View | Annotate | Download (954 Bytes)

# Date Author Comment
a9b86546 03/30/2011 04:10 pm Vassilios Karakoidas

Merge branch 'master' into logic-refactoring


9cedbaf2 03/29/2011 02:33 pm Georgios Gousios

Use non-relative import statements, as per Python's style guide.

6bffabbd 03/28/2011 10:06 pm Vassilios Karakoidas works with the refacctored code

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), moved miscellaneous functions there
  • has now minimal functionality (ui->logic->db)
c8926262 03/22/2011 08:54 pm Vassilios Karakoidas

Test are now working for db, logic modules

  • Moved methods from -> to avoid
    circular dependency
92c53da1 03/22/2011 06:23 pm Vassilios Karakoidas

Refactored charge (from VM model) and fixed unit tests

  • remove backend_id (now it is inline in the model code)
  • charge now resides in (logic)
  • logic is now a proper django app
  • remove unused backend_id from
  • moved unit tests from db -> logic module
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
dac43564 03/02/2011 03:18 pm Vassilios Karakoidas

Added update_state() method

  • VirtualMachine model now has the update_state() method
    to set the _operstate field
  • Modified the other models to user update_state() method
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

c0124a81 02/28/2011 10:42 am Dimitris Moraitis

add functional test for the wizard

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

d174b105 02/27/2011 01:09 pm Vassilios Karakoidas

Changed models to match current specification

  • Rename AccountingLog -> Debit
  • FlavorCostHistory -> FlavorCost
  • Tests are broken (work in progress)
  • CreditAllocator is broken
4daac449 02/23/2011 09:01 pm Vassilios Karakoidas
  • Fixed an syntax error in Flavor (added a comma)
  • Added field inactive in VirtualMachine model
13b3c5ff 02/23/2011 08:10 pm Vassilios Karakoidas
  • Add desccription (verbose_name) to many models in the db/; no need for translation with _()
  • Removed unique=False from Flavor.cpu|ram|disk
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
b3b54e38 02/22/2011 07:54 pm Vassilios Karakoidas
  • AccountingLogTestCase & VirtualMachineTestCase are noow working properly
966be609 02/22/2011 07:53 pm Vassilios Karakoidas
  • Fixed FlavorTestCase
eb66f1fe 02/22/2011 07:46 pm Vassilios Karakoidas
  • CreditAllocatorTestCase is working now properly
8bda0440 02/21/2011 04:49 pm Vassilios Karakoidas
  • Removed FlavorCostHistoryTestCase
  • Migrated find_cost test in FlavorTestCase
  • Moved FlavorCostHistory.find_cost() -> Flavor.find_cost()
1583f11a 02/21/2011 04:01 pm Vassilios Karakoidas
  • Moved Limit.get_limit_from_user() to SynnefoUser.get_limit()
  • CreditAllocatorTestCase is modified accordingly to check the new method
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)
df9dc46b 02/20/2011 11:43 pm Vassilios Karakoidas
  • Minor comment corrections
e3bc2088 02/20/2011 11:30 pm Vassilios Karakoidas
  • Unit tests are greatly simplified
  • All unit tests are using fixtures
e4c395b7 02/20/2011 11:26 pm Vassilios Karakoidas
  • Added AccountingLog entries to db_test_data.json
  • AccountingLogTestCase is corrected and works as intended
da46c52a 02/20/2011 11:17 pm Vassilios Karakoidas
  • Fixed a bug in FlavorTestCase
8922a5a9 02/20/2011 11:15 pm Vassilios Karakoidas
  • FlavorTestCase now works correctly with the fixtures
e48404ca 02/20/2011 11:12 pm Vassilios Karakoidas
  • FlavorCostHistoryTestCase now loads the fixtures and works correctly
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
9e9db964 02/18/2011 12:53 am Vassilios Karakoidas

fix bug in CreditAllocatorTestCase (bad data initialisation)

b86e97ed 02/16/2011 11:58 pm Vassilios Karakoidas

AccountingLog test is finished; most charger-related operations are ready and tested

dddb0035 02/16/2011 10:53 pm Vassilios Karakoidas

Setup/TearDown AccountingLogTestCase is finished

9373e677 02/16/2011 10:21 pm Vassilios Karakoidas

VM owner is derived from the Image

a34d0602 02/16/2011 09:08 pm Vassilios Karakoidas

FlavorCostHistoryTestCase is complete

5cb8d769 02/16/2011 08:58 pm Vassilios Karakoidas

Flavor.get_price_list() should query with filter, not get

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

FlavorTestCase works as intended; Add FlavorCostHistoryTestCase (in progress)

3846dfd0 02/16/2011 08:26 pm Vassilios Karakoidas

remove obsolete tests; introduce various corrections/additions in models

55f1006f 02/15/2011 06:01 pm Vassilios Karakoidas

user can now have negative amount of credits

58cac9ab 02/11/2011 02:34 pm Vassilios Karakoidas

unit testing now works for CreditAllocator

6496c622 02/11/2011 01:12 pm Vassilios Karakoidas
  • minor changes in models and tests (db)
562549e3 02/10/2011 12:24 pm Vassilios Karakoidas

Fix: fixtures now works correctly

d08a5f6f 02/08/2011 11:32 pm Vangelis Koukis

What commit b4141604 should have contained.

The proper contents of commit b4141604 are included here.

5abfb207 02/07/2011 11:56 pm Vassilios Karakoidas
  • Fix unit tests in db app
61b80d9a 02/06/2011 10:48 pm Vassilios Karakoidas
  • Charger now works properly
20f15623 02/05/2011 09:21 pm Vassilios Karakoidas

tests should work now

7bd0ac17 02/04/2011 04:32 pm Vassilios Karakoidas

Add test case about the virtual machine model (only data are generated so far).

04a6d900 02/04/2011 03:43 pm Vassilios Karakoidas
  • Add unit testing for Charger
1d722015 02/04/2011 01:36 pm Vassilios Karakoidas
  • Enchance FlavorTest and fixed a bug in Flavor
e8fa4283 02/04/2011 12:30 pm Vassilios Karakoidas
  • Add tests for Flavor model
  • cost_active and cost_inactive are now returned correctly
90d311a7 02/04/2011 11:58 am Vassilios Karakoidas
  • Add one more test to CreditAllocatorTestCase class
cb2e4505 02/04/2011 11:51 am Vassilios Karakoidas
  • Added test for credit allocator
d8e682ed 02/01/2011 10:11 am Vassilios Karakoidas
  • VirtualMachine model now includes charging method (
  • CreditAllocator now performs the correct query (
  • Various minor fixes
7bd50624 01/31/2011 07:20 pm Vassilios Karakoidas
  • Add for unit testing
9f018734 01/31/2011 10:10 am Vassilios Karakoidas
  • remove
07f3219d 01/26/2011 11:01 am Vassilios Karakoidas
  • Rename aquarium -> db
  • Add Virtual Machine States into