This is the difference between this and the previous patchset (v1):
- The function "StorageVolumes.create(volume_path)" was rewritten as
"StorageVolume.clone(pool, name)".
- Patch 2 has been updated to fix the test error (introduced by a commit
pushed later).
- The function "get_next_clone_name" was moved to the module
"kimchi.utils" and
was generified (i.e. it can handle different resources other than VMs, such as
storage volumes)
Crístian Viana (5):
Add model function to wait for task
Clean up test pool directories
Clone storage volume
Clone virtual machine
Add tests and mockmodel for the cloning feature
docs/API.md | 10 ++
src/kimchi/control/storagevolumes.py | 1 +
src/kimchi/control/vms.py | 1 +
src/kimchi/i18n.py | 5 +
src/kimchi/mockmodel.py | 86 ++++++++++-
src/kimchi/model/storagevolumes.py | 97 +++++++++++-
src/kimchi/model/tasks.py | 28 ++++
src/kimchi/model/vms.py | 280 ++++++++++++++++++++++++++++++++++-
src/kimchi/utils.py | 41 +++++
tests/test_model.py | 81 ++++++++--
tests/test_rest.py | 54 +++++++
11 files changed, 669 insertions(+), 15 deletions(-)
--
1.9.3