summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Support --no-property in "volume set" command"Jenkins2017-03-064-9/+46
|\
| * Support --no-property in "volume set" commandzhiyong.dai2017-02-234-9/+46
| | | | | | | | | | | | | | Add "--no-property" option to "volume set" command in v1 and v2 and update the test cases. Change-Id: Id5660f23b3b2d9aa72f4c16b19ce83f3f7ed2fa4
* | Jsonify network flavor functional testsAnindita Das2017-03-021-70/+93
| | | | | | | | | | | | | | | | | | Some functional tests try to parse the CLI table output format, that cause much work on parse string by using regular expression. Using json format in functional tests is better and easier way, this patch reworks for network flavor related tests. Change-Id: I2bc5675409945c9ae79ac65df2d5d10781fe595a
* | Merge "Functional test for subnet"Jenkins2017-03-021-37/+231
|\ \
| * | Functional test for subnetjiahui.qiang2017-01-181-37/+231
| | | | | | | | | | | | | | | | | | Refactor functional tests for testing more command options. Change-Id: I030652f6f3ab3dada12252599b20969f03a5df02
* | | Merge "Add Cinder v3 client support for volumes"Jenkins2017-03-018-0/+139
|\ \ \
| * | | Add Cinder v3 client support for volumesJustin A Wilson2017-02-208-0/+139
| | | | | | | | | | | | | | | | | | | | | | | | 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-273-25/+38
|\ \ \ \ \
| * | | | | Port set/unset SecGroup Bug FixAnkur Gupta2017-02-263-25/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-272-0/+70
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Support list commands by group name keywordRui Chen2017-02-232-0/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Fix can not set is_default in network"Jenkins2017-02-241-53/+15
|\ \ \ \ \ \
| * | | | | | Fix can not set is_default in networkjiahui.qiang2017-02-231-53/+15
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of is_default always be None, can not be set by "network set" command. Allow "--default" and "--no-default" options to be recognized when ``--external`` is not present. Closes-bug:#1665231 Change-Id: I7a05fc7734a15994f72ca4e47997b4952f1f72f8
* | | | | | 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-222-1/+5
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Show openstacksdk version info in "module list"Rui Chen2017-02-222-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-223-0/+623
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-212-13/+12
|\ \ \ \
| * | | | Fix properties format for volume qos in volume v1Huanxuan Ao2017-02-212-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Rework port functional tests on json output format"Jenkins2017-02-212-117/+77
|\ \ \ \ \
| * | | | | Rework port functional tests on json output formatRui Chen2017-02-212-117/+77
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some functional tests try to parse the CLI table output format, that cause much work on parse string by using regular expression. Using json format in functional tests is better and easier way, the patch rework for port related tests. Change-Id: I0ec997bf63da4925742848c593db09d89655ca34
* | | | | 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
* | | | Finish converting server functional tests to JSON formatDean Troyer2017-02-181-222/+231
| | | | | | | | | | | | | | | | Change-Id: Ic9563bd86feb1f7afd403e49499205a499f0c142
* | | | Merge "Fix "server create" command failed when --nic auto or none"Jenkins2017-02-182-5/+194
|\ \ \ \
| * | | | Fix "server create" command failed when --nic auto or noneRui Chen2017-02-152-5/+194
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "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 "Functional test for router"Jenkins2017-02-181-29/+206
|\ \ \ \
| * | | | Functional test for routerjiahui.qiang2017-01-191-29/+206
| | |/ / | |/| | | | | | | | | | | | | | | | | | Refactor functional tests for testing more command options. Change-Id: I6200045c6228e245fc48a4d48d4b3796dede61b5
* | | | 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-186-7/+726
|\ \ \ \ \
| * | | | | Add "encryption-*" options in volume type commandsHuanxuan Ao2017-01-146-7/+726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Fix image selection in server function testsDean Troyer2017-02-171-6/+11
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The image selection has been affected by Cirros image changes in DevStack, make the logic moe robust and convert it to JSON. The conversion for the remainder of the file will follow. Change-Id: I8f3318f55ed79d617c3594142f0c086e2bd1a7b1
* | | | | Merge "Refactor volume functional test in volume v1"Jenkins2017-02-141-63/+183
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Refactor volume functional test in volume v1Huanxuan Ao2017-02-131-63/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a patch for refactor of volume funtional test in volume v2 [1], but v1 is missing, this change add the v1 refactor with json format. [1]: https://review.openstack.org/#/c/417349 Change-Id: I969df3c8dbca21a62f6245e3e95680cf3cd47dc1
* | | | | 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 "Refactor availability zone functional test"Jenkins2017-02-131-6/+13
|\ \ \ \ \
| * | | | | Refactor availability zone functional testzhiyong.dai2016-11-281-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using json format output in availability zone list functional test Change-Id: I7098b1c3bee680e47e414dcb4fa272628cdec1eb
* | | | | | Merge "Refactor module functional test"Jenkins2017-02-131-8/+11
|\ \ \ \ \ \
| * | | | | | Refactor module functional testzhiyong.dai2016-11-271-8/+11
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Combine "test_module_list_no_options" and "test_module_list_with_all_option" into one test, and modify the test for "--all' option. Change-Id: If4e7a73502a888c50de17ec19ef7e8d02dd23f1d
* | | | | | Merge "Modify error handling for role and group commands"Jenkins2017-02-133-21/+76
|\ \ \ \ \ \
| * | | | | | Modify error handling for role and group commandsHuanxuan Ao2017-02-093-21/+76
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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