<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">So just 2 fields, 'Password' and
'Confirm Password' will be enough.<br>
<img src="cid:part1.08050202.09010601@linux.vnet.ibm.com" alt=""><br>
<br>
On 7/28/2014 3:03 PM, Sheldon wrote:<br>
</div>
<blockquote cite="mid:53D5F5BF.9000008@linux.vnet.ibm.com"
type="cite">On 07/25/2014 03:42 PM, Yu Xin Huo wrote:
<br>
<blockquote type="cite">Shao he, can you please clarify what UI is
needed for this feature?
<br>
</blockquote>
<br>
passwd is required. should let user change passwd
<br>
<br>
$ sudo curl -k -u <user>:<password> -H "Content-Type:
application/json" -H \
<br>
"Accept: application/json" <a class="moz-txt-link-freetext" href="https://localhost:8001/vms/test-vm-8/">https://localhost:8001/vms/test-vm-8/</a> \
<br>
-X PUT -d '{"ticket": {"passwd": "abcd"}}'
<br>
<br>
<blockquote type="cite">
<br>
On 7/23/2014 6:49 PM, <a class="moz-txt-link-abbreviated" href="mailto:shaohef@linux.vnet.ibm.com">shaohef@linux.vnet.ibm.com</a> wrote:
<br>
<blockquote type="cite">From: ShaoHe Feng
<a class="moz-txt-link-rfc2396E" href="mailto:shaohef@linux.vnet.ibm.com"><shaohef@linux.vnet.ibm.com></a>
<br>
<br>
V3 -> V4:
<br>
test case not pass. fix it.
<br>
<br>
V2 -> V3:
<br>
do not make ticket as sub-resource of a VM
<br>
<br>
V1 -> V2:
<br>
make ticket as sub-resource of a VM
<br>
<br>
A ticket is the credential to access VM.
<br>
Only who get the ticket can access a VM.
<br>
<br>
test this patch set:
<br>
set the ticket
<br>
$ sudo curl -k -u <user>:<password> -H
"Content-Type: application/json" -H \
<br>
"Accept: application/json"
<a class="moz-txt-link-freetext" href="https://localhost:8001/vms/test-vm-8/">https://localhost:8001/vms/test-vm-8/</a> \
<br>
-X PUT -d '{"ticket": {"passwd": "abcd"}}'
<br>
<br>
get the ticket
<br>
$ sudo curl -k -u <user>:<password> -H
"Content-Type: application/json" -H \
<br>
"Accept: application/json"
<a class="moz-txt-link-freetext" href="https://localhost:8001/vms/test-vm-8/">https://localhost:8001/vms/test-vm-8/</a>
<br>
<br>
ShaoHe Feng (5):
<br>
vm ticket in backend: update API.md
<br>
vm ticket in backend: update controller and API.json
<br>
vm ticket in backend: update model
<br>
vm ticket in backend: update mockmodel
<br>
vm ticket in backend: update test case
<br>
<br>
docs/API.md | 7 +++++
<br>
src/kimchi/API.json | 16 +++++++++++
<br>
src/kimchi/control/vms.py | 3 +-
<br>
src/kimchi/i18n.py | 2 ++
<br>
src/kimchi/mockmodel.py | 14 +++++++++
<br>
src/kimchi/model/vms.py | 73
+++++++++++++++++++++++++++++++++++++++++++++++
<br>
tests/test_mockmodel.py | 2 +-
<br>
tests/test_model.py | 17 ++++++++++-
<br>
tests/test_rest.py | 12 ++++++++
<br>
9 files changed, 143 insertions(+), 3 deletions(-)
<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
</body>
</html>