Changes:
v2:
Remove libvirt connection from VMtemplate
Fix incorrect changes on tests
Fix return status when source_media not passed
v3:
Fix pep8 issues
Remove/add some constants
Rewrite API message
v4:
Remove cdrom verification on model
Use disk info from osinfo when adding disk based template
v6:
Add all logic to model
Create tests to verify source_media functionally
Add source_media as required
Update tests
Ramon Medeiros (4):
Create a single field to pass the installation media
Identify installation media while creating template
Update tests
Add new tests to verify source_media feature
API.json | 16 +++-------
i18n.py | 2 +-
model/templates.py | 75 ++++++++++++++++++++++++++++++++-------------
tests/test_authorization.py | 4 +--
tests/test_livemigration.py | 7 +++--
tests/test_mockmodel.py | 13 ++++----
tests/test_model.py | 71 +++++++++++++++++++-----------------------
tests/test_rest.py | 35 ++++++++++-----------
tests/test_template.py | 41 ++++++++++++-------------
tests/test_vmtemplate.py | 3 +-
10 files changed, 142 insertions(+), 125 deletions(-)
--
2.5.5