summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Add "--remote-source" option to "volume snapshot create" commandHuanxuan Ao2016-12-121-0/+28
| | | | | | | | | | | Add "--remote-source" option to "volume snapshot create" command to support creating snapshot from an existing remote snapshot in volume v2 (v2 only), also add the doc, unit tests and release note. Change-Id: I9e5fad4f0db5b44d528eb6b930edbc816e392c3a Implements: bp cinder-command-support Closes-Bug: #1618676 Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* Merge "Add extra filtering options to floating ip list"Jenkins2016-12-091-0/+112
|\
| * Add extra filtering options to floating ip listsongminglong2016-12-091-0/+112
| | | | | | | | | | | | | | | | | | | | The patch adds filtering '--long', 'status', '--project', '--project-domain' and '--router' options to floating ip list command. Closes-Bug: #1614379 Partially-Implements: blueprint network-commands-options Change-Id: I2a02cf23845ff435927d8b481f77249915bd94dc
* | Merge "Add unit tests for server create in computev2"Jenkins2016-12-091-0/+151
|\ \ | |/ |/|
| * Add unit tests for server create in computev2jiahui.qiang2016-11-281-0/+151
| | | | | | | | | | | | | | Unit tests for server create is not completed. Some of the code in take_action has not been tested. Change-Id: Ifd3f42400408d3437e0bc6cd42acbb6db861b1f3
* | Merge "Add '--force' option to 'volume snapshot delete' command"Jenkins2016-12-081-3/+20
|\ \
| * | Add '--force' option to 'volume snapshot delete' commandHuanxuan Ao2016-12-081-3/+20
| |/ | | | | | | | | | | | | | | | | Add '--force' option to 'volume snapshot delete' command in volume v2 (v2 only) to allow delete in state other than error or available. Change-Id: Ie8991e9a630d7c7e9ac6c6870aed787bbcebacf2 Closes-Bug: #1597195
* | Merge "Add "consistency group set" command"Jenkins2016-12-081-0/+64
|\ \
| * | Add "consistency group set" commandzhiyong.dai2016-12-061-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | Add "consistency group set" command in volume v2 (v2 only). Change-Id: I53116015388b7a4b0e15813f52c1246166bb0fc1 Implements: bp cinder-command-support Partial-Bug: #1613964
* | | Merge "Fix description errors in volume fakes"Jenkins2016-12-081-3/+3
|\ \ \
| * | | Fix description errors in volume fakesjiahui.qiang2016-11-271-3/+3
| |/ / | | | | | | | | | | | | | | | | | | In volumev2 fakes.py. Description of some 'get_*' methods is incorrect. the error will mislead the user. this patch has already fixed it. Change-Id: I048e3c2b625c7b54ab19f2b923d4970427f277ff
* | | Merge "Add options to "volume snapshot list" command"Jenkins2016-12-082-7/+192
|\ \ \
| * | | Add options to "volume snapshot list" commandjiahui.qiang2016-11-262-7/+192
| |/ / | | | | | | | | | | | | | | | | | | | | | Add "--name", "--status" and "--volume" options to "volume snapshot list" command for filtering results. Change-Id: I72db1abce7701f31598deec34801a4d1f5713870 Closes-Bug:#1645252
* | | Merge "Add "consistency-group-snapshot" option to consistency group create"Jenkins2016-12-081-0/+39
|\ \ \
| * | | Add "consistency-group-snapshot" option to consistency group createHuanxuan Ao2016-12-071-0/+39
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "consistency-group-snapshot" option to "consistency group create" command to support for creating consistency group from existing consistency group snapshot Implements: bp cinder-command-support Partial-Bug: #1613964 Change-Id: I54c265d38299f4973945ba99e30042bcf47859c0
* | | Merge "SDK Refactor: Prepare ip availability commands"Jenkins2016-12-082-3/+10
|\ \ \
| * | | SDK Refactor: Prepare ip availability commandsAnkur Gupta2016-12-042-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepared the OSC "ip availability" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: Ia22e9fafec0a91ba1b0f1ce825fcaf1d8cbbbf88 Partially-Implements: blueprint network-command-sdk-support
* | | | Merge "Add "volume host set" command"Jenkins2016-12-081-0/+86
|\ \ \ \
| * | | | Add "volume host set" commandjiahui.qiang2016-11-251-0/+86
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Add "volume host set" command in volume v2 to support freeze(disable) and thaw(enable) the specified cinder-volume host Change-Id: Iee1604d72f9eccd9e327b0ef8d345909a733a647 Implements: bp cinder-command-support
* | | | Merge "Remove auth_with_unscoped_saml decorator"Jenkins2016-12-081-26/+0
|\ \ \ \
| * | | | Remove auth_with_unscoped_saml decoratorColleen Murphy2016-12-041-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The auth_with_unscoped_saml decorator existed to make sure the user selected the right auth plugin before trying to call either a 'federation domain' or 'federation project' command. This is outdated, because openstackclient now uses keystoneauth[1] and keystoneauth removed its entrypoints for the federation plugins[2] since its _Rescoped class no longer needs them. This patch removes the decorator since that validation check was the only thing standing in the way of the commands working correctly. Also removed the '*_list_wrong_auth' tests since those only existed to test the decorator, and stopped setting the plugin in the positive tests since the automatically-determined token plugin should now be fine. [1] http://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=6ae0d2e8a54fd5139e63a990ab4bdce634e73c5e [2] http://git.openstack.org/cgit/openstack/keystoneauth/commit/?id=d9e4d26bb86f8d48e43188b88bab9d7fe778d2c1 Change-Id: Id981739663113447a7bba8ddba81ba9394a19e07 Closes-bug: #1624115
* | | | | Merge "Add "dns-name" option to "os port create" and "os port set""Jenkins2016-12-081-0/+50
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Add "dns-name" option to "os port create" and "os port set"Nam Nguyen Hoai2016-12-031-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch added a "dns-name" option to "os port create" and "os port set" command. Change-Id: I360e2c9a1970e64fe17e4561d7618f860b937373 Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com> Partial-Bug: #1612136 Partially-Implements: blueprint network-commands-options
* | | | | Merge "Add '--project' and '--project-domain' options to os cmds"Jenkins2016-12-053-0/+129
|\ \ \ \ \
| * | | | | Add '--project' and '--project-domain' options to os cmdsNam Nguyen Hoai2016-12-013-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch added '--project' and '--project-domain' options to filter subnets resulted by 'os subnet list', 'os floating ip create' and 'os security group list' commands. Co-Authored-By: Ha Van Tu <tuhv@vn.fujitsu.com> Change-Id: I727663d49ffa6aa042fdeb60797f18bb753b0372 Closes-Bug: #1613231 Closes-Bug: #1610909 Closes-Bug: #1613629 Partially-Implements: blueprint network-commands-options
* | | | | | Merge "Revert "Remove marker and loop from "image list" command""Jenkins2016-12-051-5/+16
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Revert "Remove marker and loop from "image list" command"Steve Martinelli2016-12-051-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0b6fdcbe4c3f3142fdd18bfd827653d894607941. Adapt "image list" to not loop when --marker is specified on command line. Update tests to work with current state of code. Change-Id: I8af58adf8637a9e34371c6280db40935d22bc3c3
* | | | | | Merge "Refactor "snapshot" commands"Jenkins2016-12-032-24/+77
|\ \ \ \ \ \
| * | | | | | Refactor "snapshot" commandsHuanxuan Ao2016-11-032-24/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.change the command name ``snapshot create/delete/list/ show/set/unset`` to ``volume snapshot create/delete/list/ show/set/unset``. 2.change the optional parameter "--name <name>" to a positional parameter "<snapshot-name>"; Change the positional parameter "<volume>" to a optional parameter "--volume <volume>" Change-Id: If03276ecdf6f0d96893d5ecf91c2aaa64929cff3 Implements: bp backup-snapshot-renamed-for-volume-resource Co-Authored-By: Sheel Rana <ranasheel2000@gmail.com>
* | | | | | | Add "consistency group show" commanddaizhiyong2016-12-021-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "consistency group show" command in volume v2 (v2 only). Change-Id: If496eba2955c0aacd52600bb6fba39690ddd90cb Implements: bp cinder-command-support Partial-Bug: #1613964
* | | | | | | Add "consistency group delete" commandzhiyong.dai2016-12-022-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "consistency group delete" command in volume v2 (v2 only). Change-Id: Ieebc2417df0d45a578d5617bad245d7863f09190 Implements: bp cinder-command-support Partial-Bug: #1613964
* | | | | | | Merge "SDK Refactor: Prepare network qos policy commands"Jenkins2016-12-021-0/+1
|\ \ \ \ \ \ \
| * | | | | | | SDK Refactor: Prepare network qos policy commandsAbhishek Raut2016-11-191-0/+1
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "network qos policy" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I12dd8bda40801c26176a73646ed87aea66f09fcc Partially-Implements: blueprint network-command-sdk-support
* | | | | | | Merge "SDK Refactor: Prepare subnet commands"Jenkins2016-12-022-4/+6
|\ \ \ \ \ \ \
| * | | | | | | SDK Refactor: Prepare subnet commandsAbhishek Raut2016-11-192-4/+6
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "subnet" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Partially-Implements: blueprint network-command-sdk-support Change-Id: I5d58b189e822b2ee61c9c95ccf909113ff59de46
* | | | | | | Merge "Add "--type" and "--retype-policy" options to "volume set" command"Jenkins2016-12-021-0/+66
|\ \ \ \ \ \ \
| * | | | | | | Add "--type" and "--retype-policy" options to "volume set" commandHuanxuan Ao2016-11-231-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--type" and "--retype-policy" options to "volume set" command in volume v2 (v2 only) to support changing the volume type for a volume Change-Id: I0153abdb967aee790586a57cef31930e32005c1b Implements: bp cinder-command-support
* | | | | | | | Merge "Add "Is Public" column in volume type list"Jenkins2016-12-022-2/+9
|\ \ \ \ \ \ \ \
| * | | | | | | | Add "Is Public" column in volume type listHuanxuan Ao2016-11-222-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think admin users will like to see the "Is Public" column in volume type list since they can know the volume type is public or private, so add "Is Public" column in volume type list Change-Id: I3f6e297a7adf82a275debbd87d2c4da415aa1360 Closes-Bug: #1643861
* | | | | | | | | Merge "Remove outdated comments in volume unit test"Jenkins2016-12-022-8/+1
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Remove outdated comments in volume unit testHuanxuan Ao2016-11-222-8/+1
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checked the volume create unit test has beed completed, so remove the TODO. Checked the FakeVolume class has been added in volume v1, so remove the note. Change-Id: I82b5f775d013e5e301bc1c18481ef516ca5baa7e
* | | | | | | | | Merge "Add commands for "consistency group snapshot""Jenkins2016-12-022-0/+429
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Add commands for "consistency group snapshot"Huanxuan Ao2016-11-192-0/+429
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add commands: consistency group snapshot create consistency group snapshot delete consistency group snapshot list consistency group snapshot show in volume v2 (v2 only) Change-Id: Ib4115f8ff00fb5aa8194588223032657eb1346b5 Closes-Bug: #1642238 Implements: bp cinder-command-support
* | | | | | | | | Merge "Add "consistency group create" command"Jenkins2016-12-021-0/+132
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | |
| * | | | | | | | Add "consistency group create" commandHuanxuan Ao2016-11-171-0/+132
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "consistency group create" command in volume v2 (v2 only). Change-Id: I2e9affe390b1012aa18459e64d04afcdfc15e27d Implements: bp cinder-command-support Partial-Bug: #1613964
* | | | | | | | Merge "clean up image choices and help text"Jenkins2016-12-022-10/+10
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | |
| * | | | | | | clean up image choices and help textSteve Martinelli2016-11-232-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use choices for image set and image create commands, this aligns with our use of choices in networking commands. Also update the help text to match that of the networking commands, where we iterate through the options. Related-Bug: 1635518 Change-Id: Ib4c66b06e07f1d4e5bfe1b74053f2215cccad890
* | | | | | | | Merge "Add `--enable/disable-port-security` option to `port set` and `port ↵Jenkins2016-12-021-0/+84
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | create`"
| * | | | | | | | Add `--enable/disable-port-security` option to `port set` and `port create`Sindhu Devale2016-11-281-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the currently missing options `--enable-port-security` and `--disable-port-security` in the `os port set` and `os port create` commands. Partially-Implements: blueprint network-commands-options Change-Id: I4dc11cdf32bf482a5937f5464fe8a3b418644ec3
* | | | | | | | | Merge "Introduce overwrite functionality in ``osc subnet set``"Jenkins2016-12-011-1/+7
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | |