<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git/openstackclient/tests/compute/v2/test_flavor.py, branch 2.3.0</title>
<subtitle>opendev.org: openstack/python-openstackclient
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/'/>
<entry>
<title>Merge "Make SetFlavor and UnsetFlavor inherit from cliff.Command"</title>
<updated>2016-02-29T18:37:44+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-02-29T18:37:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=8a3fc6c34368079d6c79cfc236c68ee8d1cb1ef4'/>
<id>8a3fc6c34368079d6c79cfc236c68ee8d1cb1ef4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Compute] Check return value is None in compute unit tests.</title>
<updated>2016-02-27T07:38:04+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-27T07:38:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=058232b9998b760d508bf1e8746e429ad45e4e8d'/>
<id>058232b9998b760d508bf1e8746e429ad45e4e8d</id>
<content type='text'>
take_action() in commands inheriting from Command returns nothing.
So we should assert the return is None in the unit tests of
these commands.

Change-Id: I953480ecff3b5beb12255d866d0e1df45f130efd
Partial-Bug: #1550636
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
take_action() in commands inheriting from Command returns nothing.
So we should assert the return is None in the unit tests of
these commands.

Change-Id: I953480ecff3b5beb12255d866d0e1df45f130efd
Partial-Bug: #1550636
</pre>
</div>
</content>
</entry>
<entry>
<title>Make SetFlavor and UnsetFlavor inherit from cliff.Command</title>
<updated>2016-02-26T19:46:30+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-17T02:07:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=f37eda3a27dc88d3186d21eca328cca086ee3647'/>
<id>f37eda3a27dc88d3186d21eca328cca086ee3647</id>
<content type='text'>
set/unset comamnd classes should inherit from cliff.Command class.

Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b
Partial-Bug: 1546065</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
set/unset comamnd classes should inherit from cliff.Command class.

Change-Id: I54e5608ac0768d7d94b7f7d516ea1948daefdc1b
Partial-Bug: 1546065</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit test for "flavor show" command</title>
<updated>2016-02-20T09:16:01+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-20T02:34:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=b4edbd55f2d22214fa9ebdba4b772d2c9d7b9e36'/>
<id>b4edbd55f2d22214fa9ebdba4b772d2c9d7b9e36</id>
<content type='text'>
Change-Id: I1591649e5b97a885707042fcccad3335ee8c7aec
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I1591649e5b97a885707042fcccad3335ee8c7aec
</pre>
</div>
</content>
</entry>
<entry>
<title>Trivial: Fix "abstractmethod" to "abstract method"</title>
<updated>2016-02-10T11:01:52+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-10T11:01:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=e1feed52217012da285ef94144ed82704b20d4e7'/>
<id>e1feed52217012da285ef94144ed82704b20d4e7</id>
<content type='text'>
As Richard &lt;rtheis@us.ibm.com&gt; has pointed out, "abstractmethod"
should be "abstract method". This is a small typo I have made
when I fix DisplayCommandBase comment bug.

Change-Id: I84f1a3158896257686a0a7efa1123eef1b85139f
Partial-bug: #1477199
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As Richard &lt;rtheis@us.ibm.com&gt; has pointed out, "abstractmethod"
should be "abstract method". This is a small typo I have made
when I fix DisplayCommandBase comment bug.

Change-Id: I84f1a3158896257686a0a7efa1123eef1b85139f
Partial-bug: #1477199
</pre>
</div>
</content>
</entry>
<entry>
<title>Compute: Fix DisplayCommandBase comments for cliff Lister subclass tests</title>
<updated>2016-02-06T02:30:34+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-06T02:30:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=3c67e8dd6ed20f9a3d6c1f8f000214cc7a8f384e'/>
<id>3c67e8dd6ed20f9a3d6c1f8f000214cc7a8f384e</id>
<content type='text'>
As bug #1477199 describes, the wrong comment below is all over the
unit test code of OSC.

    # DisplayCommandBase.take_action() returns two tuples

There is no such class named DisplayCommandBase in OSC. It is in cliff.

All OSC command classes inherit from the base classes in cliff,
class Command, class Lister and class ShowOne. It is like this:

Object
|--&gt; Command
     |--&gt; DisplayCommandBase
         |--&gt; Lister
         |--&gt; ShowOne

take_action() is an abstract method of class Command, and generally is
overwritten by subclasses.

* Command.take_action() returns nothing.
* Lister.take_action() returns a tuple which contains a tuple of
  columns and a generator used to generate the data.
* ShowOne.take_action() returns an iterator which contains a tuple
  of columns and a tuple of data

So, this problem should be fixed in 3 steps:
1. Remove all DisplayCommandBase comments for tests of classes
   inheriting from class Command in cliff as it returns nothing.
2. Fix all DisplayCommandBase comments for tests of classes
   inheriting from class Lister in cliff. Lister.take_action()
   returns a tuple and a generator.
3. Fix all DisplayCommandBase comments for tests of classes
   inheriting from class ShowOne in cliff. ShowOne.take_action()
   returns two tuples.

This patch finishes step 2 in compute tests.

Change-Id: Idc54ad21eaa1371ebd601327b8d962c7039f2de0
Partial-bug: #1477199
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As bug #1477199 describes, the wrong comment below is all over the
unit test code of OSC.

    # DisplayCommandBase.take_action() returns two tuples

There is no such class named DisplayCommandBase in OSC. It is in cliff.

All OSC command classes inherit from the base classes in cliff,
class Command, class Lister and class ShowOne. It is like this:

Object
|--&gt; Command
     |--&gt; DisplayCommandBase
         |--&gt; Lister
         |--&gt; ShowOne

take_action() is an abstract method of class Command, and generally is
overwritten by subclasses.

* Command.take_action() returns nothing.
* Lister.take_action() returns a tuple which contains a tuple of
  columns and a generator used to generate the data.
* ShowOne.take_action() returns an iterator which contains a tuple
  of columns and a tuple of data

So, this problem should be fixed in 3 steps:
1. Remove all DisplayCommandBase comments for tests of classes
   inheriting from class Command in cliff as it returns nothing.
2. Fix all DisplayCommandBase comments for tests of classes
   inheriting from class Lister in cliff. Lister.take_action()
   returns a tuple and a generator.
3. Fix all DisplayCommandBase comments for tests of classes
   inheriting from class ShowOne in cliff. ShowOne.take_action()
   returns two tuples.

This patch finishes step 2 in compute tests.

Change-Id: Idc54ad21eaa1371ebd601327b8d962c7039f2de0
Partial-bug: #1477199
</pre>
</div>
</content>
</entry>
<entry>
<title>Trivial: Coding style fix in test_flavor.py</title>
<updated>2015-12-08T05:35:51+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-12-08T05:35:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=85d6aeea32e1d208b4af1247012fe63e68922a7d'/>
<id>85d6aeea32e1d208b4af1247012fe63e68922a7d</id>
<content type='text'>
Change-Id: I3dcb3c4fbd9ff9c351426ae2ad9da009208a6485
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I3dcb3c4fbd9ff9c351426ae2ad9da009208a6485
</pre>
</div>
</content>
</entry>
<entry>
<title>Add unit testcases for "openstack flavor delete"</title>
<updated>2015-11-30T05:48:32+00:00</updated>
<author>
<name>xiexs</name>
<email>xiexs@cn.fujitsu.com</email>
</author>
<published>2015-11-30T05:18:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=0eecedc0b69d61e457be54a18fe75b6255f77def'/>
<id>0eecedc0b69d61e457be54a18fe75b6255f77def</id>
<content type='text'>
Change-Id: If23a71c678193e5c9c91300fddd17e79f674bf82
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If23a71c678193e5c9c91300fddd17e79f674bf82
</pre>
</div>
</content>
</entry>
<entry>
<title>Use FakeFlavor in TestFlavorUnset.</title>
<updated>2015-11-28T08:14:18+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-11-28T08:09:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=db516b2c96dd449daad5ff6c9479d87f1457f410'/>
<id>db516b2c96dd449daad5ff6c9479d87f1457f410</id>
<content type='text'>
Change-Id: Ifbd360db39d380efd9632300367b13283ac75f54
Implements: blueprint improve-flavor-unit-test
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ifbd360db39d380efd9632300367b13283ac75f54
Implements: blueprint improve-flavor-unit-test
</pre>
</div>
</content>
</entry>
<entry>
<title>Use FakeFlavor in TestFlavorSet.</title>
<updated>2015-11-28T08:14:12+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-11-28T08:05:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=dfbf41c55fb759184e60663ee667a1e2ad6e19fa'/>
<id>dfbf41c55fb759184e60663ee667a1e2ad6e19fa</id>
<content type='text'>
Change-Id: I335298b07afb3f969c76748527dda06cb5393fa8
Implements: blueprint improve-flavor-unit-test
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I335298b07afb3f969c76748527dda06cb5393fa8
Implements: blueprint improve-flavor-unit-test
</pre>
</div>
</content>
</entry>
</feed>
