summaryrefslogtreecommitdiff
path: root/troveclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix create call for security group rulesDenis Makogon2014-04-011-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reasons: - The security group rule create call was expecting from_port, to_port, and protocol as arguments, but the Trove API was ignoring these since it picks these up from the respective datastore confs. Changes: - Removing the extra arguments from the security-group-rule create command: - from_port - to_port - protocol Note that even though the user was able to specify the ports for the rule these were _never_ being honored since these were being picked up from the respective config files. Usage before change: - trove secgroup-add-rule <security_group> <protocol> <from_port> <to_port> <cidr> Usage after change: - trove secgroup-add-rule <security_group> <cidr> Change-Id: Ic1440f735b6cf2b8b4f29c5ab9f48bcb427ca9e6 Closes-Bug: #1298749
* Merge "Replace assertEqual(None, *) with assertIsNone in tests"Jenkins2014-03-032-3/+3
|\
| * Replace assertEqual(None, *) with assertIsNone in testsllg82122014-02-152-3/+3
| | | | | | | | | | | | | | | | 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-1611-22/+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
* Merge "Remove copyright from empty files"Jenkins2014-02-071-17/+0
|\
| * Remove copyright from empty filesAlexander Ignatov2014-02-041-17/+0
| | | | | | | | | | | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Icad4ffa9843baeb9c437d2e2c0b0d35c24abc68a Closes-Bug: #1262424
* | adds support for configurations managementCraig Vyvial2014-02-052-0/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reason: Adding configuration group support for the python-troveclient Changes: adding configuration api calls adding the compat client for tests and xml added the shell cmds for the configurations in the client made the path to datastore/version/parameters added unit tests partially implements blueprint configuration-management Change-Id: Ifc0b4077c93a805898b4cd157e33172f64e85b55
* | Merge "Adding support for incremental backups"Jenkins2014-02-051-0/+8
|\ \
| * | Adding support for incremental backupsRobert Myers2014-01-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds a parent argument to backup-create. * Adds parent_id to the backup create body if present. Implements: blueprint incremental-backups Change-Id: I76f720ae4eadf2a1977c4c2cbf286db4db079b63
* | | Merge "Use Resource() class from common Oslo code"Jenkins2014-02-041-0/+1
|\ \ \
| * | | Use Resource() class from common Oslo codeekudryashova2014-01-281-0/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | In the process of unification of the clients code we should reuse common functionality from Oslo. Resource() class from trove duplicates Oslo funclionality, so we replace it with inheritance Related to blueprint common-client-library-2 Change-Id: I9809bd3036a5b544b8ff011432f64dc5af793f61
* | | Merge "Support Extensions to Trove Client"Jenkins2014-02-041-0/+80
|\ \ \ | |_|/ |/| |
| * | Support Extensions to Trove Clientamcrn2014-01-231-0/+80
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | extensions on the contrib path (i.e. troveclient/v1/contrib/*.py), extensions on the python path that follow the naming convention of *_python_troveclient_ext, and entry-points will now be discovered and loaded. due to the mismatch of the api version and the troveclient package name, '1.0' vs. '1', the client has been patched to look for contrib in troveclient/v1 vs. the standard troveclient/v1_0 Change-Id: I3ea7bb5ba471b0d421581dcfda7216f429cb7b65 Closes-Bug: #1267577
* | Add Neutron supportAndrey Shestakov2014-01-291-1/+4
|/ | | | | | | | | | | | | | | | Currently create instance doesnt work in OS installation with Neutron. To get it work, additional parameter 'nics' should be specified in Nova 'create' call. This change allows user to pass 'nics' parameter when create instance. Syntax to specify '--nic' parameter is same as in novaclient. --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,port-id=port-uuid> This parameter can be specified multiple times, to attach multiple network interfaces to instance. Closes-Bug: #1257838 Change-Id: I76fb0d99512b1ee70441c924835a900ba0b7acd1
* Datastores improvementsAndrey Shestakov2014-01-211-0/+10
| | | | | | | | | | | | Improvements for client: - added datastore field in instances list - fixed datastore and version fields in instance show output - fixed mistakes in help texts - add possibility to retrieve version by uuid (without specified datastore) Implements: blueprint datastore-type-version-followon Change-Id: Id41da29ce9732823bc4696301953e9cf8cdc82f5
* Adding pagination support for backupsRobert Myers2013-12-117-87/+200
| | | | | | | | | | * 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-1011-219/+228
| | | | | | | | | | | | 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 Pep8 indentation issues only found with Pep8 1.4.6+"Jenkins2013-11-121-2/+1
|\
| * Fix Pep8 indentation issues only found with Pep8 1.4.6+Dirk Mueller2013-11-011-2/+1
| | | | | | | | Change-Id: Iea9821b95278f1853e5fe98b21c61cb3e9e42da8
* | Support datastore typesAndrey Shestakov2013-10-312-1/+137
|/ | | | | | implements blueprint db-type-version Change-Id: I5dec99c44393c04d86c1a8e19c0b3ca59329fd87
* Removing unused files with new clientMichael Basnight2013-10-231-431/+0
| | | | | fixes bug 1243452 Change-Id: Ia51e6d48e486baa818ebe3108d37bb1de537702d
* 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
* | 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-2212-10/+222
|/ | | | | | * Added HP copyrights as appropriate Change-Id: If4f30b0caf03b16f5fb4f54185ba80d9fa41d0b0
* Removed underscores from the end of some variablesAndrey Shestakov2013-10-152-11/+11
| | | | Change-Id: Iff664cef5ec580de6a33db1503a6e567701418a3
* Removing lxml/httplib2 dependsMichael Basnight2013-10-102-540/+2
| | | | | | These depends are compat only. They dont need to be listed as deps. Change-Id: Ia5718865100148d149e9c7657ace78cb08cacbac
* Massive refactoring to the troveclientMichael Basnight2013-10-0910-409/+115
| | | | | | | | | | | | | | | | 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
* Adds support for admin to create flavors through mgmt APISushil Kumar2013-09-101-0/+32
| | | | | | | | Extending the management API to allow for an admin to create flavors categorized on service type in trove. Change-Id: I8d5910e6dd9e497d1a8be4ffd58aa339d12db74f Implements: blueprint service-type-filter-on-flavors
* Merge "PEP8 with tox -epep8 check fails"Jenkins2013-09-034-26/+23
|\
| * PEP8 with tox -epep8 check failsDenis M2013-08-304-26/+23
| | | | | | | | | | Change-Id: Ife06919f321ab4ad73bece2e6080fbd7d947eeef Fixes: bug #1219014
* | Removed instance reset_password from python-troveclientNikhil Manchanda2013-08-201-6/+0
|/ | | | | | | | The reset_password operation no longer exists and needs to be removed from python-troveclient. Change-Id: Ic162ef6deb86716fa12fa5541699f602c246563e Fixes: bug 1199507
* Start using pyflakesDirk Mueller2013-06-265-8/+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-2113-0/+2571
Implements Blueprint reddwarf-trove-rename Change-Id: Ib2d694c7466887ca297bea4250eca17cdc06b7bf