<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git/openstackclient/tests/compute/v2/test_server.py, branch 2.1.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>Refactor abstract columns and datalist out in compute test cases</title>
<updated>2016-01-21T04:50:29+00:00</updated>
<author>
<name>SaiKiran</name>
<email>saikiranveeravarapu@gmail.com</email>
</author>
<published>2016-01-07T11:29:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=2b670afa33a8d8677f534e37412882110ea60ee3'/>
<id>2b670afa33a8d8677f534e37412882110ea60ee3</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: I5e8423722416ea31fdced4c932ed141de90028ab
Closes-Bug: #1531816
</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: I5e8423722416ea31fdced4c932ed141de90028ab
Closes-Bug: #1531816
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Make --image parameter optional in "server rebuild""</title>
<updated>2016-01-15T17:44:01+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-01-15T17:44:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=aa041c52694c92434e4a3ca4ad4963c03624c73f'/>
<id>aa041c52694c92434e4a3ca4ad4963c03624c73f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>TestServerGeneral: Add test for _prep_server_detail()</title>
<updated>2015-12-20T03:33:46+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-12-09T03:20:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=17f3685a83d29f33f79c0626eceefae029c2aaf5'/>
<id>17f3685a83d29f33f79c0626eceefae029c2aaf5</id>
<content type='text'>
1. Make TestServerGeneral inherit from TestServer because
   we need to use servers_mock, image_mock and flavor_mock
   in compute_client.
2. Create a dict containing all info of a server in the
   original format, and pass it to _prep_server_detail().
3. Compare the original and formatted dict.

Change-Id: Ie0b83c42a5c3bbba630a064d28374d07e2ce9caf
Implements: blueprint osc-unit-test-framework-improvement
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Make TestServerGeneral inherit from TestServer because
   we need to use servers_mock, image_mock and flavor_mock
   in compute_client.
2. Create a dict containing all info of a server in the
   original format, and pass it to _prep_server_detail().
3. Compare the original and formatted dict.

Change-Id: Ie0b83c42a5c3bbba630a064d28374d07e2ce9caf
Implements: blueprint osc-unit-test-framework-improvement
</pre>
</div>
</content>
</entry>
<entry>
<title>TestServerGeneral: Add test for _format_servers_list_networks()</title>
<updated>2015-12-20T03:24:12+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-12-08T11:10:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=b4660fec7dc1e1df53268e45e905d63f558cc383'/>
<id>b4660fec7dc1e1df53268e45e905d63f558cc383</id>
<content type='text'>
The items in a dict are in random order. So if a server is in two networks,
there may be two results after formatted.

Change-Id: I2e15d202639e3fff427935f46650a405b0e51bcc
Implements: blueprint osc-unit-test-framework-improvement
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The items in a dict are in random order. So if a server is in two networks,
there may be two results after formatted.

Change-Id: I2e15d202639e3fff427935f46650a405b0e51bcc
Implements: blueprint osc-unit-test-framework-improvement
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "TestServerGeneral: Add test for _format_servers_list_power_state()"</title>
<updated>2015-12-17T21:09:46+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-12-17T21:09:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=5840dd5a77eb6b87b8885629b584d43e78f2e0e3'/>
<id>5840dd5a77eb6b87b8885629b584d43e78f2e0e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Trivial: Improve unclear comments in test_server.py"</title>
<updated>2015-12-14T22:47:35+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-12-14T22:47:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=c47aa52c431e33f876617e648295022b95b64676'/>
<id>c47aa52c431e33f876617e648295022b95b64676</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Trivial: Improve unclear comments in test_server.py</title>
<updated>2015-12-11T09:18:28+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-12-11T09:18:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=6f7c705d4a4c9b4f7d618619cecef4c6e36c2b74'/>
<id>6f7c705d4a4c9b4f7d618619cecef4c6e36c2b74</id>
<content type='text'>
In test_server.py, there are two ImageManagers are faked:
1. the one in compute client
2. the one in image client
But the comments are the same. And so is volume.

This patch makes the comments more clear.

Change-Id: I2c52f48a7b3c005c185a4ac64abbb3e18d5fb3de
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In test_server.py, there are two ImageManagers are faked:
1. the one in compute client
2. the one in image client
But the comments are the same. And so is volume.

This patch makes the comments more clear.

Change-Id: I2c52f48a7b3c005c185a4ac64abbb3e18d5fb3de
</pre>
</div>
</content>
</entry>
<entry>
<title>Make --image parameter optional in "server rebuild"</title>
<updated>2015-12-11T07:34:26+00:00</updated>
<author>
<name>David Moreau Simard</name>
<email>dms@redhat.com</email>
</author>
<published>2015-12-09T21:18:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=a5267772186add4e37c454c5a97d0ea3a1c88a81'/>
<id>a5267772186add4e37c454c5a97d0ea3a1c88a81</id>
<content type='text'>
The command will now default to the image currently in-use by
the server, effectively making the --image parameter optional.

This commit also adds basic tests for ServerRebuild since there
wasn't any. Will add more full tests for it.

Change-Id: I733fd3ad5a825f06563c72aa430122e1a0e3b3b0
Closes-bug: #1524406
Co-Authored-By: David Moreau Simard &lt;dms@redhat.com&gt;
Co-Authored-By: Tang Chen &lt;tangchen@cn.fujitsu.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The command will now default to the image currently in-use by
the server, effectively making the --image parameter optional.

This commit also adds basic tests for ServerRebuild since there
wasn't any. Will add more full tests for it.

Change-Id: I733fd3ad5a825f06563c72aa430122e1a0e3b3b0
Closes-bug: #1524406
Co-Authored-By: David Moreau Simard &lt;dms@redhat.com&gt;
Co-Authored-By: Tang Chen &lt;tangchen@cn.fujitsu.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Add unit test for TestServerList to test --long option."</title>
<updated>2015-12-10T18:25:40+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-12-10T18:25:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=f2339e94b06112af4749e60280d4ab448812a7dc'/>
<id>f2339e94b06112af4749e60280d4ab448812a7dc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>TestServerGeneral: Add test for _format_servers_list_power_state()</title>
<updated>2015-12-10T09:11:41+00:00</updated>
<author>
<name>Tang Chen</name>
<email>tangchen@cn.fujitsu.com</email>
</author>
<published>2015-12-08T11:16:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=a8ba54562b4e31c5a02c9aef19e1c016129e30f4'/>
<id>a8ba54562b4e31c5a02c9aef19e1c016129e30f4</id>
<content type='text'>
If we have tests for each helper function, then we can call them
in other tests without worrying about error.

Change-Id: I1e4273aef201fe9d8936e5c365ebb46068039892
Implements: blueprint osc-unit-test-framework-improvement
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we have tests for each helper function, then we can call them
in other tests without worrying about error.

Change-Id: I1e4273aef201fe9d8936e5c365ebb46068039892
Implements: blueprint osc-unit-test-framework-improvement
</pre>
</div>
</content>
</entry>
</feed>
