summaryrefslogtreecommitdiff
path: root/troveclient/tests/test_common.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unittest.mock instead of third party mockSean McGinnis2020-04-181-1/+1
| | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Get all the database instances by adminLingxian Kong2019-05-211-0/+7
| | | | | | | | | | | | | | Currently, there is no way for the admin user to get databases of all the projects, which is very important for auditing or billing purpose. With this change, admin user can get all the database instances by running: $ openstack database instances list --all-projects Change-Id: I318907b1d4a63017f4a6f7967312770f8784c1f4 Story: #2005735 Task: #33393
* Fix troveclient to support MistralMorgan Jones2016-05-261-34/+1
| | | | | | | | | | | | | | | Mistral gets confused by Trove's (aguably wrong) inclusion of a member called 'items' in the Pagenated object that Trove returns as the result of 'list' client methods. This change changes Pagenated to inherit from the 'list' class so that the items method is not required (and has the additional benefit of just generally being a better implementation of a list type result). Change-Id: I683120451f69f07f131e6fa422c082f85735b196 Closes-bug: 1585705 Depends-On: Id674ae57bfcdc5e09bde1e323a614b3a03a7cad3
* Correct order of parameters to assertEqualAmrith Kumar2015-02-231-2/+2
| | | | | | | | | The correct order of parameters to assertEqual is (expected, actual). It makes the assertion message more meaningful when there is a failure. Change-Id: I1ab6933d2eee336b41f6ab791e32ad6eaa004a6b Partial-Bug: #1277104
* Add datastore filter to backup-listSteve Leon2014-06-031-5/+24
| | | | | | | | | | | | | | | This fix enhances the backup-list command to optionally receive a datastore name or ID to filter the backup list by. The filter is sent as a query string. To attach the query string to the URL and have it still work with the URL for pagination, i have made some changes in the way url with query strings are constructed. This includes the pagination URL. partially implements: blueprint backup-metadata Change-Id: I0b9ef3ec7f51ed76517a22f9c0edfdce3694a36f
* Enabled F821, H306, H402, and H404 flake8 ruleSushil Kumar2014-05-091-1/+1
| | | | | | | | | | | | | | 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
* 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
* Adding pagination support for backupsRobert Myers2013-12-111-3/+1
| | | | | | | | | | * add a _pagination method to base Manager * switched existing paginated list to use the new method * removed description from backup list and added updated Implements: blueprint paginate-backup-list Change-Id: If33c55a35bae8ebd6ed654af5ce6dfd7f9e40096
* Ignore fewer PEP8/flake8 rulesDenis Makogon2013-12-101-6/+5
| | | | | | | | | | | | 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 "Replace g.next() with next(g)"Jenkins2013-10-231-7/+7
|\
| * Replace g.next() with next(g)Kui Shi2013-10-231-7/+7
| | | | | | | | | | | | | | | | In Python 3, g.next() has been renamed to g.__next__(). The next() buildin function will work fine for Python 2&3. Partial implements: blueprint py33-support Change-Id: I992d019eb180f514388f21b2400b51c94c7bdad5
* | Fixing copyright and license headersMichael Basnight2013-10-221-0/+19
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Removed underscores from the end of some variablesAndrey Shestakov2013-10-151-7/+7
| | | | Change-Id: Iff664cef5ec580de6a33db1503a6e567701418a3
* Removing lxml/httplib2 dependsMichael Basnight2013-10-101-297/+2
| | | | | | These depends are compat only. They dont need to be listed as deps. Change-Id: Ia5718865100148d149e9c7657ace78cb08cacbac
* Massive refactoring to the troveclientMichael Basnight2013-10-091-22/+3
| | | | | | | | | | | | | | | | 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
* Remove trove as default value for Service NameVipul Sabhaya2013-09-231-1/+0
| | | | | | | | | * This causes service catalog lookup issues when the Catalog contains service_type = database, but service_name = somethine_else fixes bug 1228372 Change-Id: I1f7eebb06d7f57c0ecc95d8c05104f43e803c406
* Rename from reddwarf to trove.0.1.3Michael Basnight2013-06-211-0/+395
Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf