summaryrefslogtreecommitdiff
path: root/troveclient/tests/test_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop pycrypto from tests dependenciesHaikel Guemar2017-07-181-3/+2
| | | | | | | | | | | | | | pycrypto is unmaintained for a while and requirements team advises using pycryptodome or cryptography libraries instead (see openstack-dev thread [0]). troveclient uses pycrypto to generate random data/content in its tests which does not require any specific cryptographic need. This commit replaces it by os.urandom from Python standard library. [0] http://lists.openstack.org/pipermail/openstack-dev/2017-March/113568.html Change-Id: Ia43c5883a51e8412c4a238d127c13db39e863da1
* Replace assertTrue(a in b) with assertIn(a, b)Anh Tran2016-10-031-2/+2
| | | | Change-Id: Ic2338f549a660ddd0af70e2a1918fe6b29b2d0a2
* Use strutils.to_slug() instead of utils.slugify()Christian Berendt2016-09-061-8/+0
| | | | | | | | | | Oslo provides a function, to_slug() in strutils that is substantially similar to slugify() provided in utils by python-troveclient. Remove slugify() and use to_slug() instead. Change-Id: I97bc7cfc2c0e7d14e7617037bff431cdc1eee50f Closes-Bug: #1266127 Author: Christian Berendt <berendt@b1-systems.de>
* Client support for instance module feature2.2.0Peter Stachowski2016-03-111-0/+52
| | | | | | | | | | | | | | | | | This adds support in the python API and Trove CLI for instance module commands. These commands include: - module-apply - module-remove - module-query - module-retrieve - module-list-instance The parsing of --instance was modified to allow multiple modules to be specified. This was extended to 'nics' as well. Partially Implements: blueprint module-management Change-Id: If62f5e51d4628cc6a8b10303d5c3893b3bd5057e
* Fixes unit-test in troveclientSushil Kumar2015-04-081-9/+6
| | | | | | | | | | | | | 1. Renames tes___eq__ to be test___eq__, because earlier method was not being called. 2. Corrects the test-code in test___eq__, for the failures it gave when it started running. 3. Removes some unused code from tests, there were few lines/methods which were not used by tests just removed/updated them. Change-Id: I90aa8cb9bb9f5d15697f00df0ba1defa0ef7be59 Closes-Bug: #1441518
* Remove vim headerHe Yongli2014-02-161-2/+0
| | | | | | | | | | | 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
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-2/+2
| | | | | | | | | | | | 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
* Merge "Fix unicode issue"Jenkins2013-10-231-1/+2
|\
| * Fix unicode issueKui Shi2013-10-211-1/+2
| | | | | | | | | | | | | | | | | | | | In Python 3, all string is unicode. Replace unicode() with six.u() Make use of strutils.to_slug() for slugify() definition Partial implements: blueprint py33-support Change-Id: I6a1e19c095a2fbafcbe47b34c7af17e1b0353b9e
* | Fixing copyright and license headersMichael Basnight2013-10-221-0/+19
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Start using pyflakesDirk Mueller2013-06-261-2/+1
| | | | | | | | Instead of globally disabling pyflakes warnings, disable only those that occur frequently and fix the rest. Enable gating on those. Change-Id: I774d809ebcda2339b30c104b031211a3b2c491bd
* Rename from reddwarf to trove.0.1.3Michael Basnight2013-06-211-0/+41
Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf