<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git/openstackclient/tests/volume, branch 2.5.0</title>
<subtitle>opendev.org: openstack/python-openstackclient
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/'/>
<entry>
<title>Merge "Refactor TestVolumeShow with FakeVolume"</title>
<updated>2016-05-24T23:30:56+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-05-24T23:30:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=2402dcfc35990a1af5456ff4f3e4b0b261b1505a'/>
<id>2402dcfc35990a1af5456ff4f3e4b0b261b1505a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add FakeType class and update volumetype test in VolumeV2</title>
<updated>2016-05-23T06:16:39+00:00</updated>
<author>
<name>Huanxuan Ao</name>
<email>huanxuan.ao@easystack.cn</email>
</author>
<published>2016-05-20T02:52:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=5f6989475309a7b4c28b433723b9261018541a79'/>
<id>5f6989475309a7b4c28b433723b9261018541a79</id>
<content type='text'>
This patch adds FakeType class and update unit tests for
volume type with FakeType class

Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds FakeType class and update unit tests for
volume type with FakeType class

Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
</pre>
</div>
</content>
</entry>
<entry>
<title>Add FakeSnapshot class and update snapshot test in VolumeV2</title>
<updated>2016-05-21T09:34:04+00:00</updated>
<author>
<name>Huanxuan Ao</name>
<email>huanxuan.ao@easystack.cn</email>
</author>
<published>2016-05-19T03:03:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=dc71d165298c38f99eb62583bcd80bc4bc9a75f4'/>
<id>dc71d165298c38f99eb62583bcd80bc4bc9a75f4</id>
<content type='text'>
Add FakeSnapshot class and update unit tests for snapshot
commands with the FakeSnapshot class.

Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add FakeSnapshot class and update unit tests for snapshot
commands with the FakeSnapshot class.

Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Add support of setting snapshot state"</title>
<updated>2016-05-18T16:49:07+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-05-18T16:49:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=7a0845ec1127b89073845f07425b17651b005c38'/>
<id>7a0845ec1127b89073845f07425b17651b005c38</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor TestVolumeShow with FakeVolume</title>
<updated>2016-05-17T12:14:18+00:00</updated>
<author>
<name>ting.wang</name>
<email>ting.wang@easystack.cn</email>
</author>
<published>2016-05-12T02:13:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=0fa2e8df92986bf7cbbba131042c1d3196b54365'/>
<id>0fa2e8df92986bf7cbbba131042c1d3196b54365</id>
<content type='text'>
In the meantime, add some static methods in FakeVolume for ease of use
and add info() method with "property" decorator in FakeResource to allow
those static methods to get fake information.

Change-Id: I98ad520f32afd529fda77a4592f645130282537f
Co-Authored-By: xiexs &lt;xiexs@cn.fujitsu.com&gt;
Implements: blueprint improve-volume-unittest-framework
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the meantime, add some static methods in FakeVolume for ease of use
and add info() method with "property" decorator in FakeResource to allow
those static methods to get fake information.

Change-Id: I98ad520f32afd529fda77a4592f645130282537f
Co-Authored-By: xiexs &lt;xiexs@cn.fujitsu.com&gt;
Implements: blueprint improve-volume-unittest-framework
</pre>
</div>
</content>
</entry>
<entry>
<title>Add FakeBackup class and updata backup unittest in volumeV2</title>
<updated>2016-05-17T01:58:05+00:00</updated>
<author>
<name>Huanxuan Ao</name>
<email>huanxuan.ao@easystack.cn</email>
</author>
<published>2016-05-16T15:00:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=4956c354b22f44e9bcab89d796539555da3ce2cb'/>
<id>4956c354b22f44e9bcab89d796539555da3ce2cb</id>
<content type='text'>
Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor TestVolumeList with FakeVolume</title>
<updated>2016-05-11T09:25:48+00:00</updated>
<author>
<name>ting.wang</name>
<email>ting.wang@easystack.cn</email>
</author>
<published>2016-05-11T08:37:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=553e154960c6a9da8481c4602c0a7a0d1147d2ad'/>
<id>553e154960c6a9da8481c4602c0a7a0d1147d2ad</id>
<content type='text'>
Change-Id: Idbe7ee1d9688ea5937852cce1a746016bf98fa74
Co-Authored-By: xiexs &lt;xiexs@cn.fujitsu.com&gt;
Implements: blueprint improve-volume-unittest-framework
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Idbe7ee1d9688ea5937852cce1a746016bf98fa74
Co-Authored-By: xiexs &lt;xiexs@cn.fujitsu.com&gt;
Implements: blueprint improve-volume-unittest-framework
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Support for volume service list"</title>
<updated>2016-04-28T16:13:46+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-04-28T16:13:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=941217a5f391941925339acaeb6892fe5d1cf5b2'/>
<id>941217a5f391941925339acaeb6892fe5d1cf5b2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Support for volume service list</title>
<updated>2016-04-25T17:42:12+00:00</updated>
<author>
<name>Sheel Rana</name>
<email>ranasheel2000@gmail.com</email>
</author>
<published>2016-03-30T11:35:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=4072554608abd4828f281dcc0e20ce99ed6611b9'/>
<id>4072554608abd4828f281dcc0e20ce99ed6611b9</id>
<content type='text'>
OSC does not support to list volume services.
This patch will provide support for adding volume service related
support.

Closes-bug:#1550999

Implements: bp cinder-command-support

Change-Id: I50ac14aeb96c4b8ddbf7b33e519feea0d126f752
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OSC does not support to list volume services.
This patch will provide support for adding volume service related
support.

Closes-bug:#1550999

Implements: bp cinder-command-support

Change-Id: I50ac14aeb96c4b8ddbf7b33e519feea0d126f752
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix mutable default arguments in tests</title>
<updated>2016-04-20T03:15:17+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-04-15T07:46:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-openstackclient.git/commit/?id=09c20b2b5c53024c47da8828095ea95dc63810f6'/>
<id>09c20b2b5c53024c47da8828095ea95dc63810f6</id>
<content type='text'>
Python’s default arguments are evaluated only once
when the function is defined, not each time the
function is called. This means that if you use a
mutable default argument (like list and dict) and
mutate it, you will and have mutated that object
for all future calls to the function as well.

More details about this wrong usage here:
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments

In unit tests, most FakeXXX classes' methods take
mutable arguments with default values [] or {}.
We should change them to None.

Change-Id: Iea833b66aa1379829511ad5c6d4432b72f3488e2
Closed-bug: #1550320
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Python’s default arguments are evaluated only once
when the function is defined, not each time the
function is called. This means that if you use a
mutable default argument (like list and dict) and
mutate it, you will and have mutated that object
for all future calls to the function as well.

More details about this wrong usage here:
http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments

In unit tests, most FakeXXX classes' methods take
mutable arguments with default values [] or {}.
We should change them to None.

Change-Id: Iea833b66aa1379829511ad5c6d4432b72f3488e2
Closed-bug: #1550320
</pre>
</div>
</content>
</entry>
</feed>
