summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* SDK refactor: Prepare network agent commandsHuanxuan Ao2017-01-152-0/+4
| | | | | | | | Prepare the OSC "network agent" commands for the SDK refactor. Partially-Implements: blueprint network-command-sdk-support Closes-bug: #1656542 Change-Id: I6745f5ffb04b009487e6cb36d1807dce9b248b4c
* Fix floating IP delete and show by IPDean Troyer2017-01-142-19/+72
| | | | | | | | | | | The floating IP delete and show commands did not work using IP addresses as the selector, only ID. The SDK floating_ip resource does not support but OSC does, so we have to do it ourselves. Now with more SDK 0.9.10 support! Change-Id: Iea1b57cded6b16a56a06af87ab8f1fa001a3485e Closes-bug: 1656402
* fix functional tests for network agentsSteve Martinelli2017-01-131-1/+1
| | | | | | | As of SDK v0.9.11 the get_agent method no longer supports the "ignore_missing" parameter. Change-Id: Id655bf8499ed1a102a6bf583927cf66139581ab0
* Fix image member unit tests occasional failuresDean Troyer2017-01-121-20/+87
| | | | | | | Let's try just unrolling the member status tests and not getting too fancy here. Change-Id: I30022ebd2da6d6cf1abba424d7d7fa679285f291
* Fix Network QoS rule CLI attrs parsingRodolfo Alonso Hernandez2017-01-121-0/+52
| | | | | | | | Allows to set zero values in the CLI parameters for Network QoS rule. Change-Id: Ie0e045ff4888615d68804fd739d5b995ca11e9a1 Closes-Bug: #1655947
* Merge "Add unit test for multi volume types delete"Jenkins2017-01-122-5/+73
|\
| * Add unit test for multi volume types deleteHuanxuan Ao2017-01-112-5/+73
| | | | | | | | | | | | | | | | Missing unit test for multi volume types delete in volume v2 (v1 has been done), this patch add it. Change-Id: I5fe67196408157f8bdfe6399ba1e559cea3dc559
* | Merge "Add support for Network QoS rule commands"Jenkins2017-01-113-73/+1092
|\ \
| * | Add support for Network QoS rule commandsRodolfo Alonso Hernandez2017-01-093-73/+1092
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added following commands: - network qos rule create --type minimum-bandwidth dscp-marking limit-bandwidth - network qos rule delete - network qos rule list - network qos rule set - network qos rule show Closes-Bug: 1609472 Depends-On: I2e8869750024a8ccbc7777b95fe8ef6e26ec0885 Depends-On: Ife549ff6499217ca65e2554be8ef86ea7866b2d8 Change-Id: Ib3e1951f0917f5f23c8d9e0a380d19da2b3af5f0
* | | Merge "Add two consistency group commands"Jenkins2017-01-111-0/+206
|\ \ \ | |_|/ |/| |
| * | Add two consistency group commandszhiyong.dai2016-12-131-0/+206
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add commands: consistency group add volume consistency group remove volume in volume v2 (v2 only) Change-Id: I70ff287d3b5df78196b8f4b9e50402c471aef284 Implements: bp cinder-command-support Closes-Bug: #1613964
* | | Merge "Error handling for delete commands in identity"Jenkins2017-01-118-0/+231
|\ \ \
| * | | Error handling for delete commands in identityHuanxuan Ao2017-01-038-0/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing multi deletion error handling for identity delete commands. All delete commands in identity support error handling now. Change-Id: I05626dcb5e516a423d610906347b02236ba7eeaf
* | | | Merge "Add support for Glance 'update image members' feature"Jenkins2017-01-111-0/+33
|\ \ \ \
| * | | | Add support for Glance 'update image members' featureJordan Pittier2017-01-041-0/+33
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds 3 new options to the "image set" command: --accept, --reject and --pending. This updates the membership status for an image. Closes-Bug: 1620481 Change-Id: I13b8c067aad68ece9ff636fbdd83bcb3663c91b2
* | | | Merge "Fix filter error in os volume list"Jenkins2017-01-111-0/+117
|\ \ \ \
| * | | | Fix filter error in os volume listjiahui.qiang2017-01-091-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixed a bug of unable to filter volume list by '--project', '--user' in "openstack volume list". Modify uint test for 'volume list' to check parameter of list method. Change-Id: I1fc4296c4c7eca0f7a803dbfd5e15e3bc0d6403f
* | | | | Fix Octavia gate breakage caused by _get_columns()Nir Magnezi2017-01-091-0/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The above mentioned function tries to extract keys() from an item which is type class. This patch fixes the issue by converting item to dict by using to_dict(). Change-Id: Ida520ae9fe64171d105f486ba06eda127a24547b Closes-Bug: #1654887
* | | | Merge "OSC Network Meter"Jenkins2017-01-082-0/+349
|\ \ \ \
| * | | | OSC Network MeterAnkur Gupta2017-01-012-0/+349
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Neutron feature of Metering into OpenStack Client. Meter Rules will be implemented in seperate patchset. Partially Implements: blueprint neutron-client-metering Change-Id: Ie82d42759504cbdb1c991c5183c1f0adf59e60fe
* | | | Merge "Add options to allow filtering on agent list"Jenkins2017-01-081-0/+35
|\ \ \ \
| * | | | Add options to allow filtering on agent listZhou Zhihong2017-01-051-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add options to allow filtering via --agent-type and --host on agent list Change-Id: I1800f0777aa92a76b4b95f64f8acc18454809e81 Closes-Bug: #1641868 Partially-Implements: blueprint network-commands-options
* | | | | Merge "Fix "ip availability show" command"Jenkins2017-01-061-2/+8
|\ \ \ \ \
| * | | | | Fix "ip availability show" commandHuanxuan Ao2017-01-061-2/+8
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK refactor broken ip availability show functional test, We can not find a ip availability by network name but only network ID, so we find network and get the ID first, then find the ip availability by the network ID. Closes-Bug: 1653139 Change-Id: I246163fb875e2cdb9e5b091bac500a94268e8aa9
* | | | | Fix creating a private flavor with ID autoJens Rosenboom2017-01-051-3/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a private flavor is created with ID auto (=default) and a project is specified for it, instead of trying to add the project to the flavor called "auto" the ID of the newly created project should be used. Change-Id: I19f7a0ec26bd5d147f00ecba3312240e3601567e Closes-Bug: 1654221
* | | | 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