[Kimchi-devel] [PATCH][Kimchi 0/3] Issue #857: Support VM description

Ramon Medeiros ramonn at linux.vnet.ibm.com
Tue Aug 16 16:56:21 UTC 2016


Commands for testing:


Creating vm with title and description:

curl -u root -H "Content-Type: application/json" -H "Accept: 
application/json" -k http://localhost:8010/plugins/kimchi/vms -X POST -d 
'{"template": "/plugins/kimchi/templates/TEMPLATE", "title": <TITLE>, 
"description": <DESCRIPTION>}'


updating VM title and description:

curl -u root -H "Content-Type: application/json" -H "Accept: 
application/json" -k http://localhost:8010/plugins/kimchi/vms/VM -X PUT 
-d '{"title": "", "description": ""}'

Also, run a GET to check if description is showed:
curl -u root -H "Content-Type: application/json" -H "Accept: 
application/json" -k http://localhost:8010/plugins/kimchi/vms/VM -X GET


On 08/16/2016 01:23 PM, Ramon Medeiros wrote:
> Ramon Medeiros (3):
>    Issue #857: Support VM description
>    Update tests
>    Update docs
>
>   API.json                | 20 ++++++++++++++++++++
>   docs/API.md             |  6 ++++++
>   i18n.py                 |  2 ++
>   model/vms.py            | 24 +++++++++++++++++++++---
>   tests/test_mockmodel.py |  3 ++-
>   tests/test_model.py     |  3 ++-
>   vmtemplate.py           |  5 ++++-
>   7 files changed, 57 insertions(+), 6 deletions(-)
>

-- 

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems & Technology Group
Phone : +55 19 2132 7878
ramonn at br.ibm.com




More information about the Kimchi-devel mailing list