<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-troveclient.git/troveclient/tests/test_client.py, branch 2.16.0</title>
<subtitle>opendev.org: openstack/python-troveclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/'/>
<entry>
<title>move old apiclient code out of openstack/common</title>
<updated>2016-11-10T15:02:08+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2016-11-10T15:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=eed19c835fc5706099ce2cee872fc66d99836cf8'/>
<id>eed19c835fc5706099ce2cee872fc66d99836cf8</id>
<content type='text'>
As part of the first community-wide goal [1], teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

The package, apiclient, was moved to a top level location
and cliutils was moved to the common module. There are no oslo
specific libraries, the recommended solution is to move it
in tree and maintain it there.

Specifically in this patch, I also rearranged some of the
imports to make them match up with the hacking guidelines
while I was re-ordering them for the refactor anyway.

Lastly, the apiclient/fake_client.py was deleted since it
was not used.

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html

Change-Id: Ib7b691240b819c9c91b100ca47ffaba75b281c78
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As part of the first community-wide goal [1], teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

The package, apiclient, was moved to a top level location
and cliutils was moved to the common module. There are no oslo
specific libraries, the recommended solution is to move it
in tree and maintain it there.

Specifically in this patch, I also rearranged some of the
imports to make them match up with the hacking guidelines
while I was re-ordering them for the refactor anyway.

Lastly, the apiclient/fake_client.py was deleted since it
was not used.

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html

Change-Id: Ib7b691240b819c9c91b100ca47ffaba75b281c78
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace assertDictEqual</title>
<updated>2016-07-29T02:15:25+00:00</updated>
<author>
<name>jiansong</name>
<email>jian.song@easystack.cn</email>
</author>
<published>2016-07-28T07:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=2093cba59ebfe7bbd7cb3bfa032da20b0c0a0d9e'/>
<id>2093cba59ebfe7bbd7cb3bfa032da20b0c0a0d9e</id>
<content type='text'>
Here,assertDictEqual is test that two dictionaries are equal.This method
will be used by default to compare dictionaries in calls to assertEqual.
So,I replace assertDictEqual.

refer to [1] for more information

[1]:https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.assertDictEqual

Change-Id: Idb30eeab13e9cad44e7c78c7903280f5e3bf66d6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Here,assertDictEqual is test that two dictionaries are equal.This method
will be used by default to compare dictionaries in calls to assertEqual.
So,I replace assertDictEqual.

refer to [1] for more information

[1]:https://docs.python.org/2.7/library/unittest.html#unittest.TestCase.assertDictEqual

Change-Id: Idb30eeab13e9cad44e7c78c7903280f5e3bf66d6
</pre>
</div>
</content>
</entry>
<entry>
<title>switch to keystoneauth</title>
<updated>2016-05-23T02:06:51+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>stevemar@ca.ibm.com</email>
</author>
<published>2016-03-10T04:06:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=fff88e0a9c58eb495df03721b084e470584d7492'/>
<id>fff88e0a9c58eb495df03721b084e470584d7492</id>
<content type='text'>
move troveclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated.

Change-Id: I3d57dde9c013038accbab8cc30d9622a142d0f71
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
move troveclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated.

Change-Id: I3d57dde9c013038accbab8cc30d9622a142d0f71
</pre>
</div>
</content>
</entry>
<entry>
<title>remove unnecessary message when running unit test</title>
<updated>2015-10-21T13:08:42+00:00</updated>
<author>
<name>Zhiqiang Fan</name>
<email>aji.zqfan@gmail.com</email>
</author>
<published>2015-09-27T17:13:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=4ed9ef91e0b858a9069d19980b5a1ef56a13960a'/>
<id>4ed9ef91e0b858a9069d19980b5a1ef56a13960a</id>
<content type='text'>
When we test log related code, we still print the tested log message
into stderr, which is not quite useful for developers, we should
mock those message. Package fixtures.FakeLogger already provides an
option to mock specified logger, so let's use it.

Note: this patch also changes an unnecessary object attribute to local
varible.

Change-Id: I4bc5beaa4eba149f12c58f072fe66163aed8c0c8
Closes-Bug: #1500236
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When we test log related code, we still print the tested log message
into stderr, which is not quite useful for developers, we should
mock those message. Package fixtures.FakeLogger already provides an
option to mock specified logger, so let's use it.

Note: this patch also changes an unnecessary object attribute to local
varible.

Change-Id: I4bc5beaa4eba149f12c58f072fe66163aed8c0c8
Closes-Bug: #1500236
</pre>
</div>
</content>
</entry>
<entry>
<title>Added more unit-tests to improve code coverage</title>
<updated>2015-06-08T10:51:40+00:00</updated>
<author>
<name>Sushil Kumar</name>
<email>sushil.kumar3@hp.com</email>
</author>
<published>2015-06-08T07:13:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=61a756a014eac7a9a479031d2d76187e668c158f'/>
<id>61a756a014eac7a9a479031d2d76187e668c158f</id>
<content type='text'>
Following files were too low on code coverage,
so the coverage has been enhanced with addition of more unit-tests.
- troveclient/client.py
- troveclient/v1/shell.py

The methodology to test shell.py has been motivated from the
one used by python-novaclient to test novaclient/v2/shell.py

Also, found an unmocked entry in test_secgroups.py,
which was causing intermittent failure while
writing the tests for shell.py.

Closes-Bug: #1455856
Change-Id: I6a148fb5caad6a83b6ac23411b6458f231064ead
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Following files were too low on code coverage,
so the coverage has been enhanced with addition of more unit-tests.
- troveclient/client.py
- troveclient/v1/shell.py

The methodology to test shell.py has been motivated from the
one used by python-novaclient to test novaclient/v2/shell.py

Also, found an unmocked entry in test_secgroups.py,
which was causing intermittent failure while
writing the tests for shell.py.

Closes-Bug: #1455856
Change-Id: I6a148fb5caad6a83b6ac23411b6458f231064ead
</pre>
</div>
</content>
</entry>
<entry>
<title>Corrects order of parameters to assertEqual</title>
<updated>2015-04-28T13:33:05+00:00</updated>
<author>
<name>Sushil Kumar</name>
<email>sushil.kumar3@hp.com</email>
</author>
<published>2015-04-28T13:32:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=8b1e3c36633eca72fe2cb7dc8cb0463bd5f78f8c'/>
<id>8b1e3c36633eca72fe2cb7dc8cb0463bd5f78f8c</id>
<content type='text'>
The correct order of parameters to assertEqual is (expected,
actual).
It makes the assertion message more meaningful when there is
a failure.

Change-Id: Ifd35dbf6a6157c6ec7607e8ace6757b12f47657d
Closes-Bug: #1277104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The correct order of parameters to assertEqual is (expected,
actual).
It makes the assertion message more meaningful when there is
a failure.

Change-Id: Ifd35dbf6a6157c6ec7607e8ace6757b12f47657d
Closes-Bug: #1277104
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove vim header</title>
<updated>2014-02-16T05:08:07+00:00</updated>
<author>
<name>He Yongli</name>
<email>yongli.he@intel.com</email>
</author>
<published>2014-02-13T06:49:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=59ec2bb43354674f9d0a3f25d8098bc7264bbd45'/>
<id>59ec2bb43354674f9d0a3f25d8098bc7264bbd45</id>
<content type='text'>
No need to set tabstop tons of times, this can be set in your vimrc
file instead.

More disucssion:
http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html

Change-Id: I45766d91f0c0b3622bbdc7dc5517497c87ebee8c
Closes-Bug: #1229324
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No need to set tabstop tons of times, this can be set in your vimrc
file instead.

More disucssion:
http://openstack.10931.n7.nabble.com/Remove-vim-modelines-td21780.html

Change-Id: I45766d91f0c0b3622bbdc7dc5517497c87ebee8c
Closes-Bug: #1229324
</pre>
</div>
</content>
</entry>
<entry>
<title>Ignore fewer PEP8/flake8 rules</title>
<updated>2013-12-10T16:49:20+00:00</updated>
<author>
<name>Denis Makogon</name>
<email>dmakogon@mirantis.com</email>
</author>
<published>2013-12-10T16:49:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=69c865695f388141bcbf645e57771bcb3fcdb491'/>
<id>69c865695f388141bcbf645e57771bcb3fcdb491</id>
<content type='text'>
Reasons:
- code should be pythonicaly clean,
  that is why number of ignored rules should reduced

Changes:
- E125, F811, H102, H103, F201, H23,
  H302, F841, H301, H702, H703 rules are now enabled

Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reasons:
- code should be pythonicaly clean,
  that is why number of ignored rules should reduced

Changes:
- E125, F811, H102, H103, F201, H23,
  H302, F841, H301, H702, H703 rules are now enabled

Change-Id: Ibf4025162244d3c2f1278b49a76ec1527a729042
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixing copyright and license headers</title>
<updated>2013-10-22T18:21:33+00:00</updated>
<author>
<name>Michael Basnight</name>
<email>mbasnight@gmail.com</email>
</author>
<published>2013-10-22T17:46:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=af4d4ed4f75ac26339399c2c226cec69eb20caa8'/>
<id>af4d4ed4f75ac26339399c2c226cec69eb20caa8</id>
<content type='text'>
* Added HP copyrights as appropriate

Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added HP copyrights as appropriate

Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
</pre>
</div>
</content>
</entry>
<entry>
<title>Massive refactoring to the troveclient</title>
<updated>2013-10-10T02:21:08+00:00</updated>
<author>
<name>Michael Basnight</name>
<email>mbasnight@gmail.com</email>
</author>
<published>2013-09-27T05:26:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-troveclient.git/commit/?id=fd43cbd73b9de8a216039e6e66a8523e4c96543d'/>
<id>fd43cbd73b9de8a216039e6e66a8523e4c96543d</id>
<content type='text'>
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new client adheres to the standards of the other clients
now. It prints out tables, uses ENVVAR's for auth, no longer
stores pickled json in a login token, uses openstack common,
and moves the cli operations into a v1 module for the future
of trove when it has a v2 api.

Please note for compatibility, the troveclient.compat module
has the old cli. In order to deploy it, amend the setup.cfg
to include the compat module.

implements blueprint cli-compliance-upgrade

Change-Id: Ie69d9dbc75ce90496da316244c97acca1877a327
</pre>
</div>
</content>
</entry>
</feed>
