[Kimchi-devel] [PATCH 0/2 v2] New MockModel

Aline Manera alinefm at linux.vnet.ibm.com
Fri Nov 14 15:51:38 UTC 2014


Now it is completely done! \o/

The new MockModel uses Model with the 'test:///default' URI.
I also needed to update some tests cases and the run_tests.sh.in scripts as
the new MockModel overrides some Model functions, the test_model.py must be the
first test to be run.

V1 -> V2:
- Fix some tests cases
- Update volune ref_cnt when VM is deleted

Aline Manera (2):
  bug fix: Update storage volume ref_cnt when VM is deleted
  MockModel refactor: Create MockModel based on Model("test:///default")

 src/kimchi/mockmodel.py     | 1771 ++++++++-----------------------------------
 src/kimchi/model/vms.py     |   16 +-
 src/kimchi/vmtemplate.py    |    9 +-
 tests/run_tests.sh.in       |   18 +-
 tests/test_authorization.py |   27 +-
 tests/test_mockmodel.py     |   60 +-
 tests/test_model.py         |    5 +
 tests/test_rest.py          |  254 +++----
 8 files changed, 518 insertions(+), 1642 deletions(-)

-- 
1.9.3




More information about the Kimchi-devel mailing list