Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / quotaholder / test @ b75a7e53

Name Size
  settings
__init__.py 0 Bytes
config.py 3.5 kB
qh_init 126 Bytes
simpletests.py 16.4 kB

Latest revisions

# Date Author Comment
3adbfafa 04/05/2013 06:48 pm Giorgos Korfiatis

wip Remove import_limit and export_limit from policy

If needed, they can be simulated by importing from special resources.

d03796c2 04/05/2013 06:48 pm Giorgos Korfiatis

Redesign quota holding

A Holding now tracks the current usage (amount imported)
and the amount available to export (stock).

Counters come in pairs (imported_min, imported_max and
stock_min, stock_max respectively) to allow for a two-step
commission.

For example, issuing a commission to import some quantity...

2b888e60 04/05/2013 06:48 pm Giorgos Korfiatis

Merge Policy model into Holding

Since the removal of quantity, Policy was left with only one value:
capacity. To simplify things, we directly include capacity in Holding.

This makes obsolete the following functions, which are removed:
get_limits, set_limits, get_holding, set_holding.

04dcc30e 04/05/2013 06:48 pm Giorgos Korfiatis

Import resource from no source

Since quantity (initial supply) has been removed from Policy,
there is no direct way to set the initial available resource,
for example the total available VMs for holding cyclades.

This is now achieved by issuing (and accepting) a commission...

ccdb7c02 04/05/2013 06:48 pm Giorgos Korfiatis

wip Merge quotaholder into astakos

quotaholder_django/quotaholder_app becomes astakos/quotaholder
quotaholder_django/test becomes astakos/quotaholder/test

508ed0e1 04/05/2013 06:48 pm Giorgos Korfiatis

Delete obsolete testing files

c6ef66ba 04/05/2013 06:48 pm Giorgos Korfiatis

Update quotaholder unit tests

View revisions

Also available in: Atom