[Kimchi-devel] [PATCH V2 0/5] vm ticket in backend

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Tue Jul 15 15:45:08 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

V1 -> V2:
make ticket as sub-resource of a VM

A ticket is the credential to access VM.
Only who get the ticket can access a VM.

test this patch set:
set the ticket
$sudo curl -k -u <user>:<password> -H "Content-Type: application/json" -H  \
"Accept: application/json" https://localhost:8001/vms/test-vm-8/ticket/ \
-X PUT -d '{"passwd": "abcd"}'

get the ticket
$sudo curl -k -u <user>:<password> -H "Content-Type: application/json" -H \
"Accept: application/json" https://localhost:8001/vms/test-vm-8/ticket/


ShaoHe Feng (5):
  vm ticket in backend: update API.md
  vm ticket in backend: update controller and API.json
  vm ticket in backend: update model
  vm ticket in backend: update mockmodel
  vm ticket in backend: update test case

 docs/API.md               | 20 +++++++++++++++
 src/kimchi/API.json       | 14 ++++++++++
 src/kimchi/control/vms.py | 13 ++++++++++
 src/kimchi/i18n.py        |  1 +
 src/kimchi/mockmodel.py   | 18 +++++++++++++
 src/kimchi/model/vms.py   | 65 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/test_model.py       | 31 ++++++++++++++++++++++
 tests/test_rest.py        | 36 ++++++++++++++++++++++++++
 8 files changed, 198 insertions(+)

-- 
1.9.3




More information about the Kimchi-devel mailing list