summaryrefslogtreecommitdiff
path: root/troveclient/compat/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove Rackspace auth references from troveclientMonty Taylor2016-05-181-51/+0
| | | | | | | | | | Removing the Rackspace Auth references that are not supported by an openstack deployment. Co-Authored-By: Craig Vyvial <cp16net@gmail.com> Change-Id: I7e630a77eaeb31de0962b31bc2f86becf2975dd8 Closes-Bug: #1401804
* Fix the function name with correct wordvenkatamahesh2015-10-141-1/+1
| | | | | | | The name of the function is wrongly defined and is corrected Change-Id: I125ebb67544f40dbad6f838765744e0e077d6f01
* Fixes new hacking rules1.2.0Sushil Kumar2015-05-261-1/+1
| | | | | | | | | | | | | | | | | Updated the hacking version as per global-requirements. Fixed some of new appearing hacking rules, as listed follows: - E128 continuation line under-indented for visual indent - E265 block comment should start with '# ' - E713 test for membership should be 'not in' - H238 old style class declaration, use new style (inherit from `object`) Rules which are not yet fixed have been incorporated to ignorelist - H405 Multi line docstrings should start with a one line summary followed by an empty line - H501 Do not use locals() or self.__dict__ for formatting strings Change-Id: I885c6fa8ad0e6a98f7a8479f3441ed08ed2cbaa6
* Merge "Add instance_metadata functionality to the trove python library"Jenkins2014-06-101-0/+2
|\
| * Add instance_metadata functionality to the trove python libraryDaniel Salinas2014-05-241-0/+2
| | | | | | | | | | | | Implements: blueprint trove-metadata Change-Id: I4e498844afd2d2730fad2176dccaf1d61d8798c1
* | Merge "fixed several pep8 issues"Jenkins2014-05-281-1/+1
|\ \ | |/ |/|
| * fixed several pep8 issuesChristian Berendt2014-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | * E265 block comment should start with '# ' * E128 continuation line under-indented for visual indent * E713 test for membership should be 'not in' Tested with pep8 version 1.5.6 (2014-04-14). Change-Id: If2853c79bea91ebef5cd97dff66788b46b174a9a
* | Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-092-6/+6
|/ | | | | | | | | | | | | | Reasons: - F821 is disabled. - H306 is disabled. - H402 is disabled. - H404 is disabled. Changes: - Updates tox.ini to enable F821, H306, H402 and H404 rules. - Updates code for F821, H306, H402 and H404 violation. Change-Id: I772270bb833ac774e080fc63e330d6b333f23de2
* Get rid of XML related trove client bindingsNikhil Manchanda2014-03-162-259/+1
| | | | | | | | We will no longer support XML for the trove API; it behooves us to remove XML related code, and clean up the trove client. Partially implements bp: destroy-xml-api Change-Id: I58f95e81f3e4bc4bad277ff2a48abfced2b48199
* Merge "Replace assertEqual(None, *) with assertIsNone in tests"Jenkins2014-03-032-22/+21
|\
| * Replace assertEqual(None, *) with assertIsNone in testsllg82122014-02-152-22/+21
| | | | | | | | | | | | | | | | Replace assertEqual(None, *) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: Ifbb144e26b62790d8b8ba9b5c3eea7d04844ee19 Closes-Bug:#1280522
* | 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
* Fixed misspellings of common wordsSushil Kumar2014-01-141-4/+4
| | | | | | | Fixed misspelling of common words found by the 'misspellings' tool. Change-Id: I8e03379f92b62fd4856bbc74b7e4641226a403d3 Closes-Bug: #1257531
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-103-102/+136
| | | | | | | | | | | | 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
* Removes unused import statementsDebasish Chowdhury2013-11-302-2/+0
| | | | | Change-Id: If229aa3f6e1009e1abfba13aba3970bdf2dd3761 closes-bug: #1255885
* Removing unused files with new clientMichael Basnight2013-10-231-0/+431
| | | | | fixes bug 1243452 Change-Id: Ia51e6d48e486baa818ebe3108d37bb1de537702d
* Use six.iteritems() in for loopKui Shi2013-10-231-7/+7
| | | | | | | | | Use six.iteritems() in for loop. Use next() built-in function to return next item. Partial implements: blueprint py33-support Change-Id: Idff28608232ad9a41dc63d397d88e363ffde8193
* Include troveclient/compat/tests in testrKui Shi2013-10-232-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All tests should be included in testr. In test_common.py, the testr command line will be read for parsing, finally emit error message: run.py: error: no such option: -t we should mock the sys.argv in setUp(). The analysis is here -------------------- troveclient/compat/common.py: CommandsBase 254 def _parse_options(self, parser): 255 opts, args = parser.parse_args() <-- 1. no arg is passed /usr/lib/python2.7/optparse.py 1361 def _get_args(self, args): 1362 if args is None: 1363 return sys.argv[1:] <-- 3. cmdline(testr command) is read 1364 else: 1365 return args[:] 1367 def parse_args(self, args=None, values=None): ... 1381 rargs = self._get_args(args) <-- 2. args is None Close-Bug #1241845 Change-Id: I092db96d1b6bb31c41e6ba4c5fc9606e3f8ac087
* Removed underscores from the end of some variablesAndrey Shestakov2013-10-151-7/+7
| | | | Change-Id: Iff664cef5ec580de6a33db1503a6e567701418a3
* Removing lxml/httplib2 dependsMichael Basnight2013-10-102-0/+618
These depends are compat only. They dont need to be listed as deps. Change-Id: Ia5718865100148d149e9c7657ace78cb08cacbac