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

Yu Xin Huo huoyuxin at linux.vnet.ibm.com
Wed Jul 30 08:55:49 UTC 2014


So just 2 fields, 'Password' and 'Confirm Password' will be enough.


On 7/28/2014 3:03 PM, Sheldon wrote:
> On 07/25/2014 03:42 PM, Yu Xin Huo wrote:
>> Shao he, can you please clarify what UI is needed for this feature?
>
> passwd is required. should let user change passwd
>
> $ sudo curl -k -u <user>:<password> -H "Content-Type: 
> application/json" -H \
> "Accept: application/json" https://localhost:8001/vms/test-vm-8/ \
> -X PUT -d '{"ticket": {"passwd": "abcd"}}'
>
>>
>> On 7/23/2014 6:49 PM, shaohef at linux.vnet.ibm.com wrote:
>>> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>>>
>>> V3 -> V4:
>>> test case not pass. fix it.
>>>
>>> V2 -> V3:
>>> do not make ticket as sub-resource of a VM
>>>
>>> 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/ \
>>> -X PUT -d '{"ticket": {"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/
>>>
>>> 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 | 7 +++++
>>> src/kimchi/API.json | 16 +++++++++++
>>> src/kimchi/control/vms.py | 3 +-
>>> src/kimchi/i18n.py | 2 ++
>>> src/kimchi/mockmodel.py | 14 +++++++++
>>> src/kimchi/model/vms.py | 73 
>>> +++++++++++++++++++++++++++++++++++++++++++++++
>>> tests/test_mockmodel.py | 2 +-
>>> tests/test_model.py | 17 ++++++++++-
>>> tests/test_rest.py | 12 ++++++++
>>> 9 files changed, 143 insertions(+), 3 deletions(-)
>>>
>>
>>
>>
>>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140730/d5600b1f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hefgdfee.png
Type: image/png
Size: 13039 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140730/d5600b1f/attachment.png>


More information about the Kimchi-devel mailing list