summaryrefslogtreecommitdiff
path: root/troveclient/tests/osc
Commit message (Collapse)AuthorAgeFilesLines
* Fix detach configuration from instancexena-em7.1.1Lingxian Kong2021-07-091-3/+5
| | | | Change-Id: Id0853dfb207bbd219755d46a9c0d6b4e897bfbeb
* Get backup list by instance ID or name7.1.0Lingxian Kong2021-05-191-2/+26
| | | | Change-Id: I97d3fcfa2935f76cb8753734fec6dab8669e732a
* Support to restore backup from data locationwallaby-em7.0.0Lingxian Kong2021-02-211-10/+38
| | | | | | | This feature needs to bump python-troveclient major version as it introduced an incompatible change for backup creation CLI. Change-Id: I6fe94ccb552e2c0020150494ccc2ba6361184229
* Bulk backup deleteLingxian Kong2021-02-191-8/+22
| | | | Change-Id: I100f8a302aeb498e3c0cebd8d36ef5fa437d444d
* Fix getting server id for listing instancesLingxian Kong2020-12-231-0/+2
| | | | | | | | Just use 'server_id' from the instance response instead. Story: 2008464 Task: 41496 Change-Id: Ib84dbd5fbd752ab7c7607ccb874663b01bfb7388
* Support operating_status for instanceLingxian Kong2020-12-091-12/+41
| | | | Change-Id: I3f5badc4d3bbb41de008d39e813d48f6aa670dc1
* Show server_id for listing instance by adminLingxian Kong2020-12-091-21/+102
| | | | | | | Story: 2008420 Task: 41361 Change-Id: I4dd67cf9aa9a13a520e69872d2752d22f19e63cf
* Fix creating datastore version6.0.1Lingxian Kong2020-12-051-1/+1
| | | | | | | Story: 2008419 Task: 41360 Change-Id: Ib14e5d56f75b68f32ee3ec23a198f618e5141931
* Merge "Revert "Fix resize flavor for instance""6.0.0Zuul2020-11-261-5/+6
|\
| * Revert "Fix resize flavor for instance"Lingxian Kong2020-11-261-5/+6
| | | | | | | | | | | | | | | | | | Story: 2008341 Task: 41244 This reverts commit f859692cc3f3f9ad72546d6b94f991a1558d78af. Change-Id: I690956927fb2558950362d1f223596db92e53d1e
* | Support datastore version numberLingxian Kong2020-11-213-14/+26
|/ | | | | | | | | | | | | | - Support "--datastore-version-number" for creating configuration - Support "--datastore-version-number" for creating instance - Support "--version-number" for creating datastore version - Support "--version-name" for updating datastore version - Support showing version number for datastore version, instance and configuration Story: 2008358 Task: 41264 Change-Id: Ie84b4506736a82a214b0416f7e451d565552f651
* Revert "Remove flavor API"Lingxian Kong2020-11-133-4/+93
| | | | | | | | | Story: 2008341 Task: 41242 This reverts commit 27cf71299ec51976fed8b18dbf5c0e4f9f4fd6f5. Change-Id: I036a0423263b1a0332415c6403647ae82c9e34c4
* Fix up wrong import of exception classSam Morrison2020-11-111-1/+1
| | | | | | Change-Id: Ib0fb05c82477c4f081a5608012c7d64b3857a223 Story: 2008342 Task: 41243
* Support getting instances for a projectLingxian Kong2020-10-222-1/+43
| | | | Change-Id: I1b3e8dce864740221722070a710f5a2f867d6c4b
* Support updating datastore versionLingxian Kong2020-10-091-2/+20
| | | | Change-Id: Ie6f22493d1722f41db5aa1a601a652e7eefa29c4
* Show project Id for backupLingxian Kong2020-09-151-3/+9
| | | | Change-Id: I7314abe06ac750c202382ffcf37eaa08bfabcede
* Merge "Support getting backups of a specific project"Zuul2020-09-131-3/+22
|\
| * Support getting backups of a specific projectLingxian Kong2020-09-141-3/+22
| | | | | | | | Change-Id: Ia590fa6aae23b7323963181d79c9b0097fd2e4d1
* | Fix replica detach commandLingxian Kong2020-09-101-1/+1
|/ | | | Change-Id: I1d6ae85f93c4b2e549ba528f33ead1076daa601d
* Add support of subnet-id and ip-address for creating instance5.1.0Lingxian Kong2020-08-231-0/+35
| | | | Change-Id: Id88e8100a397b1512c73a0b28f14ab8edb221689
* Fix create instanceLingxian Kong2020-08-121-0/+83
| | | | Change-Id: I750434c7ebc9038b0acf0e657768f57981817e1f
* Support getting and updating instance access infoLingxian Kong2020-08-111-17/+37
| | | | | | | * Added "public" and "allowed_cidrs" fields for getting instance. * Added '--is-public/--is-private' and '--allowed-cidr' for updating. Change-Id: Ifc919667e83573bd6c3b7aff205fe08e82667457
* Support rebuild instance CLILingxian Kong2020-08-061-0/+16
| | | | Change-Id: Ieae9216033d1c9ce0078554c7519bc891f50dc35
* Flavor is optional for creating instance5.0.0Lingxian Kong2020-07-261-4/+4
| | | | | | | When creating replicas, flavor is not needed. Replica has the same server settings as the primary. Change-Id: Ia9b43a464763234b84ba163d8c773b21f53f4ee7
* Support backup strategyLingxian Kong2020-07-162-2/+93
| | | | Change-Id: Ic8c20109b287f2f9220379cb249669d18b52893d
* Merge "Replace assertItemsEqual with assertCountEqual"Zuul2020-06-231-1/+1
|\
| * Replace assertItemsEqual with assertCountEqualJoel Capitao2020-06-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - https://github.com/testing-cabal/testtools/issues/286 [4] - https://github.com/testing-cabal/testtools/pull/277 Change-Id: I444b5919817b6b5cde2165872293076aff6bf6e9
* | Support to create datastore version4.1.0Lingxian Kong2020-06-111-0/+18
| | | | | | | | Change-Id: Ibc7c191a3dbbe8d03cfbc9d41e30833b47ab429f
* | Remove unnecessary API call for listing instancesLingxian Kong2020-06-111-6/+11
|/ | | | Change-Id: Ibd6a1ce15abc12524f49f4091acb38d6841a8476
* Support role for listing instances4.0.0Lingxian Kong2020-06-031-6/+7
| | | | Change-Id: Ia3e8d5d65bc134f3c7bc62ca9c170018be54660c
* Remove flavor APILingxian Kong2020-05-083-87/+1
| | | | Change-Id: I5a35911b5658fdf6bc08844b31cc1325b749526a
* Support to change parameters for the config groupLingxian Kong2020-05-081-0/+37
| | | | | | | | * openstack database configuration parameter set <config> <values> * openstack database configuration set <config> <values> --name NAME \ --description DESC Change-Id: I5a576309daa1751c76a4a0d33c53a8596c8665e8
* Use unittest.mock instead of third party mockSean McGinnis2020-04-1810-10/+10
| | | | | | | | 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>
* Fix resize flavor for instance3.3.0Lingxian Kong2020-01-211-3/+5
| | | | | | Change-Id: I9192857a690585cb3f365b15707dfa98e521e788 Story: #2007188 Task: #38315
* Support to delete datastoreLingxian Kong2020-01-121-0/+15
| | | | Change-Id: Id0fe73eef95bb57ecee706b9eb9b7aae53236e3b
* Support to delete datastore versionLingxian Kong2020-01-071-0/+18
| | | | | | usage: openstack datastore version delete <datastore_version_id> Change-Id: I4b781e68b81a3888d15d002fcf488a1f765c9f6a
* Support to reboot instanceLingxian Kong2020-01-041-0/+16
| | | | | | openstack database instance reboot <instance> Change-Id: Id5ac985399797356165eaac68dd05bc46ee0124d
* Support to force delete instanceLingxian Kong2020-01-041-0/+11
| | | | Change-Id: I20802f199ef943244f27a842743434e1c84c79e5
* Add IP addresses in instance list outputLingxian Kong2019-12-251-6/+6
| | | | Change-Id: I469fe301f438577ee7c897dcddb28cb672e50c6b
* Support log actions in osc pluginLingxian Kong2019-12-162-17/+55
| | | | | | | | - openstack database log show <instance_id> <log_name> - openstack database log set <instance_id> <log_name> [OPTIONS] Change-Id: I86f414a53e6f6416f96e0040635bb010aa49cf41
* Support to create public instanceLingxian Kong2019-09-111-2/+7
| | | | | | | | | Add two params for creating instance: '--is-public' and '--allowed-cidr' Change-Id: I3bc69e3d56d250b562543f0de2c78c05fcaefead Story: 2006500 Task: 36469
* Support backup filteringLingxian Kong2019-08-251-7/+39
| | | | | | | | | | | | | | To get all the backups of an instance: openstack database backup list --instance-id <instance-id> Admin user gets backups of all the projects: openstack database backup list --all-projects Story: #2006433 Task: #36346 Change-Id: I871d1ffa27805158024e8ecbe1dceae725c4deac
* Support to batch delete database instancesLingxian Kong2019-06-061-9/+29
| | | | | | | | Allow users to delete database instances in batch, usage: usage: openstack database instance delete [-h] instance [instance ...] Change-Id: I88a15ba1910f7b3294067b54ae4a7a9b4c4a17a5
* Get all the database instances by adminLingxian Kong2019-05-211-13/+41
| | | | | | | | | | | | | | 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 wrong keyword argumentsYotaro Konishi2018-10-021-0/+14
| | | | | | | | | | | | Currently 'openstack database flavor list' command fails when using '--datastore-type' and '--datastore-version-id' options. This change fixes the issue by correcting keyword arguments. This change also adds a test case of listing flavors with the optional arguments. Change-Id: I37be4911d4dda1529e2550344a912e0aa3c50558 Closes-Bug: #1794663
* Sync two parameters of cluster-create to OSCzhanggang2018-08-211-2/+10
| | | | | | | | | | | | | The previous patches have add configuration and extended_properties to "trove cluster-create"[1][2], this commit add the two paramenters to OSC, user can pass configuration and extended_properties during "openstack database cluster create". [1] https://review.openstack.org/#/c/583125/ [2] https://review.openstack.org/#/c/589047/ Change-Id: Ic8e3ba4e92d3b65fa65875675f58eead5827976a Signed-off-by: zhanggang <zhanggang@cmss.chinamobile.com>
* Merge "Add promote-to-replica-source to OSC"rocky-em2.16.0Zuul2018-07-181-0/+18
|\
| * Add promote-to-replica-source to OSCwangyao2018-07-171-0/+18
| | | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the promote-to-replica-source command. The trove command promote-to-replica-source is now: openstack database instance promote to replica source Change-Id: I0009b3e1074ddabaed6b02f5578f28cffc995b30 Partially-Implements: blueprint trove-support-in-python-openstackclient
* | Merge "Add execution-delete to OSC"Zuul2018-07-181-0/+15
|\ \
| * | Add execution-delete to OSCwangyao2018-07-171-0/+15
| |/ | | | | | | | | | | | | | | | | | | | | This change adds database support to the python-openstackclient project for the execution-delete command. The trove command execution-delete is now: openstack database backup execution delete Change-Id: I9934a047d48daed53567b59bb51a2eab4d6e37b5 Partially-Implements: blueprint trove-support-in-python-openstackclient