<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git/openstackclient/tests/common/test_extension.py, branch 3.0.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>Standardize import format</title>
<updated>2016-07-22T11:24:02+00:00</updated>
<author>
<name>shizhihui</name>
<email>zhihui.shi@easystack.cn</email>
</author>
<published>2016-07-21T04:14:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=f996138a0d0c1ea16a1c3e90e63eedcf8fa53148'/>
<id>f996138a0d0c1ea16a1c3e90e63eedcf8fa53148</id>
<content type='text'>
According to the rule in
http://docs.openstack.org/developer/hacking/#imports
I modify some irregular import format.

Change-Id: Ibf29ccaf3ddec4a956334cc3368ebee7a66e282c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to the rule in
http://docs.openstack.org/developer/hacking/#imports
I modify some irregular import format.

Change-Id: Ibf29ccaf3ddec4a956334cc3368ebee7a66e282c
</pre>
</div>
</content>
</entry>
<entry>
<title>Update unit test test_extension with fake class</title>
<updated>2016-06-07T08:17:42+00:00</updated>
<author>
<name>Huanxuan Ao</name>
<email>huanxuan.ao@easystack.cn</email>
</author>
<published>2016-06-03T12:58:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=0fd3a8c7877a8a04cd3234f2b44b7dd3117e2a80'/>
<id>0fd3a8c7877a8a04cd3234f2b44b7dd3117e2a80</id>
<content type='text'>
Add FakeExtension class in networkv2, computev2, volumev2,
identityv2_0 and update unit test test/common/test_extension.py

Change-Id: I94815de7801860edb7fa91a7d146455cab946652
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add FakeExtension class in networkv2, computev2, volumev2,
identityv2_0 and update unit test test/common/test_extension.py

Change-Id: I94815de7801860edb7fa91a7d146455cab946652
</pre>
</div>
</content>
</entry>
<entry>
<title>Enhance list extension unit test</title>
<updated>2016-03-11T02:39:15+00:00</updated>
<author>
<name>Fang Zhen</name>
<email>zhen.fang@easystack.cn</email>
</author>
<published>2016-03-10T10:51:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=4208f02a20af6d7561bd925406893b261a5fbbe1'/>
<id>4208f02a20af6d7561bd925406893b261a5fbbe1</id>
<content type='text'>
Extension list involves identity, compute, volume and network.
Current test covers only identity and network. This patch added test
against compute and volum. Also refactored current implentation.

Change-Id: If9b36cba24c50a817a17f685801e418fb898596a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extension list involves identity, compute, volume and network.
Current test covers only identity and network. This patch added test
against compute and volum. Also refactored current implentation.

Change-Id: If9b36cba24c50a817a17f685801e418fb898596a
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix DisplayCommandBase comments for cliff Lister subclass tests</title>
<updated>2016-02-09T12:28:18+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-02-09T09:30:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=e69b88ef525445325843c129e1a113a92ed98e3a'/>
<id>e69b88ef525445325843c129e1a113a92ed98e3a</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 all but identity tests. There are too many
such comments in identity tests. So fix them all in another patch.

Change-Id: I00f38d12f55abe20fa708f6349073da658622f8d
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 all but identity tests. There are too many
such comments in identity tests. So fix them all in another patch.

Change-Id: I00f38d12f55abe20fa708f6349073da658622f8d
Partial-bug: #1477199
</pre>
</div>
</content>
</entry>
<entry>
<title>Changed the abstract columns and datalists from test cases of common and Identity</title>
<updated>2016-01-12T11:55:33+00:00</updated>
<author>
<name>SaiKiran</name>
<email>saikiranveeravarapu@gmail.com</email>
</author>
<published>2016-01-09T06:09:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=030aee6fbcca6be97dd898e8c1b4c05021832bbd'/>
<id>030aee6fbcca6be97dd898e8c1b4c05021832bbd</id>
<content type='text'>
columns and datalist has been set in each test case in compute,
which is not necessary. This patch abstract it out and remove
all redundant code.

Change-Id: I45a3582088161f12e60e7c933da8e7dcc0ae8e7b
Closes-Bug: #1532384
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
columns and datalist has been set in each test case in compute,
which is not necessary. This patch abstract it out and remove
all redundant code.

Change-Id: I45a3582088161f12e60e7c933da8e7dcc0ae8e7b
Closes-Bug: #1532384
</pre>
</div>
</content>
</entry>
<entry>
<title>SDK integration extensions and server create networks</title>
<updated>2015-12-09T18:39:20+00:00</updated>
<author>
<name>Terry Howe</name>
<email>terrylhowe@gmail.com</email>
</author>
<published>2015-12-09T18:38:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=7aa6e5e36c2aee4bbffda0a1ed56f7e6e508e52d'/>
<id>7aa6e5e36c2aee4bbffda0a1ed56f7e6e508e52d</id>
<content type='text'>
Finish up the SDK integration with server create network and port
find and extension list.

Change-Id: I18dbada784d8aa92a45a937f251023ddf899c53e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Finish up the SDK integration with server create network and port
find and extension list.

Change-Id: I18dbada784d8aa92a45a937f251023ddf899c53e
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unnecessary test extension mock</title>
<updated>2015-07-17T19:30:46+00:00</updated>
<author>
<name>TerryHowe</name>
<email>terrylhowe@gmail.com</email>
</author>
<published>2015-07-08T15:49:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=e7e8760fa6d8af1217bca55efef4bfa2c4eba396'/>
<id>e7e8760fa6d8af1217bca55efef4bfa2c4eba396</id>
<content type='text'>
The network extension test does not need this.

Change-Id: I8dd2cad759a813d7df0476afa6c56f455ddff616
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The network extension test does not need this.

Change-Id: I8dd2cad759a813d7df0476afa6c56f455ddff616
</pre>
</div>
</content>
</entry>
<entry>
<title>fix the wrong order of assertEqual args</title>
<updated>2015-01-27T09:02:41+00:00</updated>
<author>
<name>wanghong</name>
<email>w.wanghong@huawei.com</email>
</author>
<published>2015-01-27T09:02:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=127af151ff60d11e7b2f88555678cf18b8828e48'/>
<id>127af151ff60d11e7b2f88555678cf18b8828e48</id>
<content type='text'>
Let's fix them thoroughly.

Change-Id: I8a1f042fb614b05c9836a49041f3883638b870b0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's fix them thoroughly.

Change-Id: I8a1f042fb614b05c9836a49041f3883638b870b0
</pre>
</div>
</content>
</entry>
<entry>
<title>Add network extension list</title>
<updated>2014-07-26T21:57:48+00:00</updated>
<author>
<name>Terry Howe</name>
<email>terrylhowe@gmail.com</email>
</author>
<published>2014-07-11T15:05:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=25e0d2ab2794dc68cccec0d1e7b463b7d7f7e65f'/>
<id>25e0d2ab2794dc68cccec0d1e7b463b7d7f7e65f</id>
<content type='text'>
Network extension list support

Change-Id: I013f68ef2c3329c8db59e2441dd8d4ffafd4470e
Closes-Bug: #1337685
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Network extension list support

Change-Id: I013f68ef2c3329c8db59e2441dd8d4ffafd4470e
Closes-Bug: #1337685
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for extension list</title>
<updated>2014-06-11T19:40:30+00:00</updated>
<author>
<name>Matt Fischer</name>
<email>matt@mattfischer.com</email>
</author>
<published>2014-05-13T17:04:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=4ae4dc35bda42a972c1d1480e89cda67bf39636d'/>
<id>4ae4dc35bda42a972c1d1480e89cda67bf39636d</id>
<content type='text'>
 - Add support in the common section for extension list. This only
   supports Identity for now. Once the APIs for volume and compute
   are supported in the respective APIs, they will be added. Once
   network is added to this client, it will be added (the API already
   supports it).
 - Include extension fakes for volume and compute for pre-enablement.

Change-Id: Iebb0156a779887d2ab06488a2a27b70b56369376
Closes-Bug: #1319115
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - Add support in the common section for extension list. This only
   supports Identity for now. Once the APIs for volume and compute
   are supported in the respective APIs, they will be added. Once
   network is added to this client, it will be added (the API already
   supports it).
 - Include extension fakes for volume and compute for pre-enablement.

Change-Id: Iebb0156a779887d2ab06488a2a27b70b56369376
Closes-Bug: #1319115
</pre>
</div>
</content>
</entry>
</feed>
