summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Fixes image api URL endpoint for certain scenarioImtiaz Chowdhury2017-01-042-2/+2
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstackclient fails to get image list when the image api endpoint has 'v2' substring in the URL. Instead of checking whether the api endpoint URL terminates with '/v2', the current logic is checking whether 'v2' appears anywhere in the endpoint string. This issue was discovered on a production setup where certain server names had 'v2' in their names. For example, when a hostname is gopher.dev20.com, the image list APIs fail. This commit updates the unit test to reflect this scenario. Without the change in openstackclient/api/image_v2.py, all the unit tests fail. Co-Authored-By: sergio.carvalho@workday.com Change-Id: I26b85afd646938272dbabe8e045b337b7df58c7d Closes-Bug: 1652827
* | | | | Merge "Add unit tests for usage commands in compute v2"Jenkins2016-12-262-0/+244
|\ \ \ \ \
| * | | | | Add unit tests for usage commands in compute v2jiahui.qiang2016-12-262-0/+244
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit tests and fakes for command below in compute v2: usage list usage show Change-Id: Ie533e23375ca6b8ba4cb7e865d39fac652cc0195
* | | | | | Merge "Add '--type'and other options to network rbac list"Jenkins2016-12-261-1/+63
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Add '--type'and other options to network rbac listguiyanxing2016-12-211-1/+63
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds '--type','--action','--long' filtering options to network rbac list command Change-Id: I21846820ab223bb7832e89eb2d7658bbec271aec Closes-Bug: #1648307 Partially-Implements: blueprint network-commands-options
* | | | | Add support for QoS rule type commandsRodolfo Alonso Hernandez2016-12-222-0/+107
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added following commands: - network qos rule type list Closes-Bug: 1612194 Depends-On: Iecf7bc7acd244a842aae963993f37a64a26b43b9 Change-Id: I38af823c726ceaba9d0b45488fa48e2d93971c92
* | | | Merge "Introduce overwrite functionality in ``osc router set``"Jenkins2016-12-211-15/+35
|\ \ \ \
| * | | | Introduce overwrite functionality in ``osc router set``Reedip2016-12-191-15/+35
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | The overwrite functionality allows user to overwrite the routes of a specific router. Change-Id: I8d3cfe5cab2ffbfa046371c3adcd2cf446c91cbc partially-implements: blueprint allow-overwrite-set-options
* | | | Merge "Add one test for "backup set" command"Jenkins2016-12-211-0/+24
|\ \ \ \ | |_|/ / |/| | |
| * | | Add one test for "backup set" commandzhiyong.dai2016-12-191-0/+24
| |/ / | | | | | | | | | | | | | | | | | | The former tests for "backup set" command miss a test for '--description' option. In this patch, one relative test is added. Change-Id: Ie755d56a68a666d48751ab1ad20c8edb50e69b94
* | | Add support for clearing router gatewayReedip2016-12-191-0/+13
|/ / | | | | | | | | | | | | | | | | This patch adds the support to clear the gateway information from a router. Change-Id: I446c556750f080a6fc21fea8f531fd71838d648a Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options
* | Merge "Add support for setting router gateway"Jenkins2016-12-191-3/+109
|\ \
| * | Add support for setting router gatewayReedip2016-12-171-3/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the support to set the gateway information for a router. Implements: blueprint neutron-client-advanced-router Partially-Implements: blueprint network-commands-options Change-Id: Ifb5a4d1965cd7e75c0c8cf2cfb677e0628b699dc Depends-On: I2bda0dd40afd64b6cecca5f64ef2326bda4fac92
* | | Merge "Add filtering options to the address scope list command"Jenkins2016-12-181-0/+98
|\ \ \
| * | | Add filtering options to the address scope list commandYan Xing'an2016-12-181-0/+98
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Add --name, --ip-version, --project, --project-domain, --share, --no-share options to the address scope list command. Change-Id: I8ece8da473d07dfc21dfb5b17de47624241f0142 Closes-Bug: #1636046 Partially-Implements: blueprint network-commands-options
* | | Merge "Add --default option to "volume type list""Jenkins2016-12-181-1/+26
|\ \ \
| * | | Add --default option to "volume type list"jiahui.qiang2016-12-061-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--default" option to volume v2's "type list" command, it will show which volume type the volume service has set as default. Implements: bp cinder-command-support Change-Id: Iae7ebc633ebe5554cc88390a84361887ec211fb2
* | | | Merge "Add some options to "volume create" command"Jenkins2016-12-162-0/+284
|\ \ \ \ | |/ / / |/| | |
| * | | Add some options to "volume create" commandjiahui.qiang2016-12-062-0/+284
| |/ / | | | | | | | | | | | | | | | | | | | | | Add "--bootable", "--non-bootable", "--read-only" and "--read-write" options to "volume create" command for setting some attributes at the time of crration. Change-Id: I71b4e9fccb4ee0ab1a90e7179d6d2d34dbbae909 Implements: bp cinder-command-support
* | | Merge "SDK refactor: Prepare network commands"Jenkins2016-12-162-23/+53
|\ \ \
| * | | SDK refactor: Prepare network commandsSindhu Devale2016-12-152-23/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "network" commands for the SDK refactor. Change-Id: I50680f6675905f2147fee94cce8c1ed9c81dac0a Partially-Implements: blueprint network-command-sdk-support
* | | | Merge "SDK Refactor: Prepare port commands"Jenkins2016-12-152-2/+5
|\ \ \ \
| * | | | SDK Refactor: Prepare port commandsAbhishek Raut2016-12-132-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "port" commands for the SDK refactor. See [1] for details. Also fixed a typo in the UT. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I0e37d6c04f3d8e81fdfd50ac26eea9b5a5fb2ff9 Partially-Implements: blueprint network-command-sdk-support
* | | | | Merge "[TrivialFix] Fix typo error"Jenkins2016-12-151-1/+1
|\ \ \ \ \
| * | | | | [TrivialFix] Fix typo errorjeckxie2016-12-141-1/+1
| |/ / / / | | | | | | | | | | | | | | | Change-Id: Iaba9ba22de044b34b4b77f81bcdccda13af81405
* | | | | Merge "SDK Refactor: Prepare router commands"Jenkins2016-12-152-4/+7
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | SDK Refactor: Prepare router commandsYan Xing'an2016-12-122-4/+7
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prepare the OSC "router" commands for the SDK refactor. See [1] for details. [1] https://etherpad.openstack.org/p/osc-network-command-sdk-support Change-Id: I2fa12943a65e3981b924e6cea9ed041682ec54b2 Partially-Implements: blueprint network-command-sdk-support
* | | | 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