summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Support --no-property in "volume set" command"Jenkins2017-03-062-0/+24
|\
| * Support --no-property in "volume set" commandzhiyong.dai2017-02-232-0/+24
| | | | | | | | | | | | | | Add "--no-property" option to "volume set" command in v1 and v2 and update the test cases. Change-Id: Id5660f23b3b2d9aa72f4c16b19ce83f3f7ed2fa4
* | Merge "Add Cinder v3 client support for volumes"Jenkins2017-03-011-0/+0
|\ \
| * | Add Cinder v3 client support for volumesJustin A Wilson2017-02-201-0/+0
| | | | | | | | | | | | | | | | | | Initial Cinder v3 support Change-Id: Idd5074832e80697ed0671f06d3291dfd92dbfb08
* | | Merge "Auto allocated topology for OSC"Jenkins2017-03-012-0/+292
|\ \ \
| * | | Auto allocated topology for OSCAnkur Gupta2017-02-222-0/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implementation of Auto-allocated topology into OSC. Dependency merged and released in SDK v. 0.9.11 Partially Implements: blueprint network-auto-allocated-topology Change-Id: I16120910893b0b26b0f7f77a184b0378448458c5
* | | | Merge "Port set/unset SecGroup Bug Fix"Jenkins2017-02-272-24/+24
|\ \ \ \
| * | | | Port set/unset SecGroup Bug FixAnkur Gupta2017-02-262-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Throwing error 'Port' object has no attribute 'security_groups' Fix for set and unset. Change-Id: I1a0625b5a432c7a91cf40249ce4f7c883f53d704 Closes-Bug: #1656788
* | | | | Merge "Support list commands by group name keyword"Jenkins2017-02-271-0/+35
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Support list commands by group name keywordRui Chen2017-02-231-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The output of current "command list" is so long, it's very difficult for users to find out the commands they care about. Add "--group <group-keyword>" option to filter the commands by group name keyword, like: --group volume, list all openstack.volume.v2 (cinder) commands That support the scenario that users need to know the current support commands of some OpenStack services(nova, neutron, cinder and so on) in OSC. Change-Id: Id673042729ad36a0cac0b81fb31a3537c24f03fc Closes-Bug: #1666780
* | | | | Fix output of ListSecurityGroupRuleJens Rosenboom2017-02-242-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Ethertype column was always left empty because a wrong column name was being used. Change-Id: I7fc0f8d5eb7bac1efb234faba454dad0a45a7e6a Closes-Bug: 1667699
* | | | | Revert unit tests for quota commandsHuanxuan Ao2017-02-231-42/+30
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quota set and quota show command have been fixed by [1] [2], now can revert the unit test as well [1] https://review.openstack.org/435574 [2] https://review.openstack.org/435735 Change-Id: I3d592df6ea4e96770dac4dba91819b5c4bcb0561
* | | | Merge "Show openstacksdk version info in "module list""Jenkins2017-02-221-0/+3
|\ \ \ \ | |/ / / |/| | |
| * | | Show openstacksdk version info in "module list"Rui Chen2017-02-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstacksdk bug/1588823 exist, no good way to add __version__ for openstack module properly, fix the issue in osc side, make openstacksdk module information be available. Change-Id: I27ff61792443d1aa07f31598bed3aa32f924ff40 Partial-Bug: #1662058
* | | | OSC Network FlavorAnindita Das2017-02-222-0/+470
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements Neutron feature of Network Flavor into OpenstackClient This patch implements the following commands: network flavor create network flavor delete network flavor list network flavor show network flavor set Works with openstacksdk version 0.9.8 Change-Id: I29d7a62341010a1d067a8ca93bccb7d9b8d4c425 Partially-Implements: blueprint neutron-client-flavors Partially-Implements: blueprint network-commands-options
* | | Merge "Fix properties format for volume qos in volume v1"Jenkins2017-02-211-11/+10
|\ \ \
| * | | Fix properties format for volume qos in volume v1Huanxuan Ao2017-02-211-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notice that patch [1] fixed the error of properties format for volume qos in volume v2, but there is the same bug in volume v1, and the patch missed that, so fix the problem in v1 as well [1] https://review.openstack.org/#/c/421065/ Partial-Bug: #1656767 Change-Id: I156bf13d164dbd0d0a7ce394964176718c4ff0e5
* | | | Merge "Remove remaining uses of SDK Proxy.session"Jenkins2017-02-211-0/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Remove remaining uses of SDK Proxy.sessionDean Troyer2017-02-191-0/+4
| | |/ | |/| | | | | | | | | | | | | | | | SDK commit Ie67c240e3caa5e100ce07db3862718195c894748 exposed lingering uses of Proxy.session in OSC. Get rid of them. Change-Id: Icab230f1897a446cf3deb0e3d0550d24e11a0ef3
* | | Merge "Use public and unified method get_console_url()"Jenkins2017-02-201-16/+12
|\ \ \
| * | | Use public and unified method get_console_url()huangtianhua2017-02-141-16/+12
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Novaclient has provided a public and unified method get_console_url() to get console urls of server. This change switches to use it. Change-Id: Ie6b9d8cfc57a6943b5d64a4064e4bdd372cd8cd3 Depends-on: I36c6209b17ef453e1c2e47841daf41f81af471dc Closes-Bug: #1654913
* | | Merge "Fix "server create" command failed when --nic auto or none"Jenkins2017-02-181-0/+146
|\ \ \
| * | | Fix "server create" command failed when --nic auto or noneRui Chen2017-02-151-0/+146
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "auto" and "none" options was added into --nic argument of server create command in patch https://review.openstack.org/#/c/412698/ , but that don't work and raise internal error when execute command. The patch fix that issue and add unit and functional tests. Change-Id: Ia718c3bac0a5172a0cdbe9f0d97972a9346c1172 Co-Authored-By: Kevin_Zheng <zhengzhenyu@huawei.com> Closes-Bug: #1663520
* | | Merge "Add "volume host failover" command"Jenkins2017-02-181-0/+31
|\ \ \
| * | | Add "volume host failover" commandzhiyong.dai2016-11-211-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "volume host failover" command in volume v2 (v2 only). Change-Id: Ia39e6d20bf5c9d3096e46f3432804a240827548d Implements: bp cinder-command-support
* | | | Merge "Add "encryption-*" options in volume type commands"Jenkins2017-02-184-7/+568
|\ \ \ \ | |_|/ / |/| | |
| * | | Add "encryption-*" options in volume type commandsHuanxuan Ao2017-01-144-7/+568
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--encryption-provider", "--encryption-cipher", "--encryption-key-size" and "--encryption-control-location" options to "volume type set" and "volume type create" commands. Add "--encryption-type" option to "volume type unset", "volume type list" and "volume type show" commands. Change-Id: I3572635d5913d971a723a62d7790ffe0f20ec39a Implements: bp cinder-command-support Closes-Bug: #1651117
* | | | Merge "Overwrite/Clear Flavor property"Jenkins2017-02-131-0/+17
|\ \ \ \
| * | | | Overwrite/Clear Flavor propertyReedip2017-02-131-0/+17
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support to overwrite/clear the flavor's property using the new ``--no-property`` option in the ``flavor set`` command. Change-Id: I873c96fcf223bbd638a19b908766d904a84e8431 Implements: blueprint allow-overwrite-set-options Co-Authored By: zhiyong.dai@easystack.cn
* | | | Merge "Modify error handling for role and group commands"Jenkins2017-02-132-0/+72
|\ \ \ \
| * | | | Modify error handling for role and group commandsHuanxuan Ao2017-02-092-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if command failed, we usually raise exception, if command success, sometimes there is not any output (such as set, add commands) So modify the error handling for role and group commands. Change-Id: I1c0f86c04dcedd9c0d725fd73f3436be9da75ee0
* | | | | Merge "Add choices for option '--policy'"Jenkins2017-02-131-34/+3
|\ \ \ \ \
| * | | | | Add choices for option '--policy'zhiyong.dai2016-11-271-34/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating server group, the '--policy' option is required, but valid choice is 'affinity' or 'anti-affinity', adding multiple policies will produce an error. This patch add choices and default value for option '--policy', and remove the former help message. Change-Id: I312680af384363b3e9a7de9aa1f0946643e193e2 Closes-Bug: #1662771
* | | | | Merge "Add --fixed-ip option to the port list command"Jenkins2017-02-132-1/+89
|\ \ \ \ \
| * | | | | Add --fixed-ip option to the port list commandYan Xing'an2017-02-072-1/+89
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support to allow filtering ports via --fixed-ip option to the port list command. Change-Id: I2f728368d3046b2e6feadd0848bf6f8680e31aba Partial-bug: #1634799 Partially-Implements: blueprint network-commands-options
* | | | | Fix --parents and --children options in project showRui Chen2017-02-091-28/+18
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Options "--parents" and "--children" don't work in "project show" command, fix the issue and add related unit and functional tests. Change-Id: Id9965267a037442f1077f8e1929d0527981f643d Closes-Bug: #1499657
* | | | Fix "module list --all" failedRui Chen2017-02-061-9/+34
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | KeyError cause the command "module list --all" failed, fix it, and do refactor to filter private modules and reduce the loop times, add related unit tests and functional tests. Change-Id: Icd77739502e05b5f763a04a92547497bf82d5d63 Closes-Bug: #1661814
* | | Merge "Fix network create --project"Jenkins2017-01-281-0/+4
|\ \ \
| * | | Fix network create --projectDean Troyer2017-01-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK 0.9.13 needs to see project_id in the attributes, not tenant_id. Closes-bug: 1659878 Change-Id: Iff7abe8bd00cbe087c07579596c40af8b0a73302
* | | | Fix address scope list --shareDean Troyer2017-01-271-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Remove the 'shared' key from the attrs passed in to the SDK with 0.9.13. Also convert the functional tests to the JSON-style (that's how I found this). Closes-bug: 1659993 Change-Id: I614fbce967cdd07fe7360242547dbf52e7677939
* | | Merge "Support "--no-property" option in volume snapshot set"Jenkins2017-01-262-5/+71
|\ \ \
| * | | Support "--no-property" option in volume snapshot setzhiyong.dai2017-01-252-5/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Supporting "--no-property" option will apply user a convenient way to clean all properties of volume snapshot in a short command, and this kind of behavior is the recommended way to devref. The patch adds "--no-property" option in "volume snapshot set" command, and update related test cases and devref document. Change-Id: I5f10cc2b5814553699920c4343995b2e11416e4e Implements: blueprint allow-overwrite-set-options
* | | | Merge "Add options to "server list" command"Jenkins2017-01-261-0/+46
|\ \ \ \
| * | | | Add options to "server list" commandjiahui.qiang2017-01-251-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--deleted" and "--changes-since" options to "server list" command. Change-Id: Id94f6e5831a60b172b6cfcfca29b1d89de8db621 Closes-Bug:#1647242
* | | | | Merge "Switch server create to block_device_mapping_v2"Jenkins2017-01-261-9/+14
|\ \ \ \ \
| * | | | | Switch server create to block_device_mapping_v2Nikita Gerasimov2017-01-261-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current compute_client.servers.create() relies on block_device_mapping arg which is legacy[1]. "block_device_mapping" format require device_name which is leads to hard-coded hack in --volume key handler to KVM specific. "block_device_mapping_v2" format is more friendly to hypervisiors. Support of block_device_mapping_v2 appear in python-novaclient 2.16.0, openstackclient require at least 2.29.0 Makes options --volume and --block-device-mapping work simultaneously. Appends --block-device-mapping data even if --volume used. After bug 1383338 only --volume was taken when both are used. [1]http://docs.openstack.org/developer/nova/block_device_mapping.html NOTE(dtroyer): I moved the new test_boot_from_volume() functional test to Ie51b1c375c5940856ec76a5770df3c6bd18a3eba to test our previous behaviour. The only changes required to support the new behaviour should be that the empty_volume is now attached in that test. Change-Id: I7bac3d870dd9ca404093142f8bce22a62e49180d Closes-Bug: 1647406 Closes-Bug: 1497845
* | | | | | Merge "Adds domain specification for SetUser"Jenkins2017-01-261-0/+36
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Adds domain specification for SetUserSamuel Pilla2017-01-251-0/+36
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the ability to specify the domain context for making changes to a user with `--domain` flag. Example: $ openstack user set test_user --domain test_domain --enable Change-Id: I2b3241785c22e72e19181394acff650422299b0e Closes-Bug: #1658147
* | | | | Merge "To support '--project' and '--project-domain' options"Jenkins2017-01-261-0/+41
|\ \ \ \ \
| * | | | | To support '--project' and '--project-domain' optionsBadhmapriya Boopalan2016-12-231-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include '--project' and '--project-domain' filtering options to 'port list' command. Change-Id: Ic7deae348f737c754b2f3e2113bd76d71a442400 Closes-Bug: #1648087