summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge "Fix properties format for volume qos in volume v1"Jenkins2017-02-211-2/+2
|\ \ \ \ \ \
| * | | | | | Fix properties format for volume qos in volume v1Huanxuan Ao2017-02-211-2/+2
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | 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
* | | | | 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-181-5/+48
|\ \ \ \ \
| * | | | | Fix "server create" command failed when --nic auto or noneRui Chen2017-02-151-5/+48
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "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 "encryption-*" options in volume type commands"Jenkins2017-02-182-0/+158
|\ \ \ \ \ \
| * | | | | | Add "encryption-*" options in volume type commandsHuanxuan Ao2017-01-142-0/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "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-131-21/+4
|\ \ \ \ \ \
| * | | | | | Modify error handling for role and group commandsHuanxuan Ao2017-02-091-21/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Functional test for volume qos"Jenkins2017-02-132-73/+202
|\ \ \ \ \ \
| * | | | | | Functional test for volume qosjiahui.qiang2017-01-182-73/+202
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor functional tests for testing more command options. Change-Id: I6d5a82eb0e84f72e8da76b17c952e4daae9dbc08
* | | | | | Merge "Functional test for configuration"Jenkins2017-02-131-10/+33
|\ \ \ \ \ \
| * | | | | | Functional test for configurationzhiyong.dai2016-11-281-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using json format output in configuration show functional test. Change-Id: I005b361ae70ced3f6cef77291db1d39dafb0793c
* | | | | | | Merge "Functional test for aggregate"Jenkins2017-02-131-67/+142
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | |
| * | | | | | Functional test for aggregatezhiyong.dai2016-11-281-67/+142
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using json format output in aggregate functional tests. Remove resource create/delete from setupClass() and teardownClass() methods Change-Id: I6494ca63bfe8a51de0f65570fddcaf38f6c42dbb
* | | | | | Merge "Fix --parents and --children options in project show"Jenkins2017-02-091-0/+13
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Fix --parents and --children options in project showRui Chen2017-02-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Merge "Functional test for agent"Jenkins2017-02-091-57/+176
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Functional test for agentzhiyong.dai2016-11-261-57/+176
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using json format output in compute agent functional tests. Remove resource create/delete from setupClass() and teardownClass() methods Change-Id: Ic7c6c268dfccca097709378c0473eb82cddf7bc6
* | | | | Merge "Functional test for server group"Jenkins2017-02-091-26/+86
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Functional test for server groupzhiyong.dai2016-11-241-26/+86
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Rework functional tests to remove resource create/delete from setupClass() and teardownClass() methods. Change-Id: Ia852e48d3bcf706eefa56b03ba1f02b3fd7605cd
* | | | Fix "module list --all" failedRui Chen2017-02-061-0/+40
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add relnotes for the two recent bug fixes3.8.1Dean Troyer2017-01-281-0/+72
| | | | | | | | | | | | | | | | | | Also add a functional test for network create --project Change-Id: Idbfdf82f1ea6c84fb6a51df88e746e5ddb896b4f
* | | Fix address scope list --shareDean Troyer2017-01-271-58/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-54/+232
|\ \ \
| * | | Support "--no-property" option in volume snapshot setzhiyong.dai2017-01-252-54/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Switch server create to block_device_mapping_v2Nikita Gerasimov2017-01-261-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Add server_boot_from_volume() test"Jenkins2017-01-261-0/+115
|\ \ \ \
| * | | | Add server_boot_from_volume() testDean Troyer2017-01-251-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Plucked this test out of I5529f412578c50090e70d17aa0129217bf803fed in order to validate the current behaviour before applying that change. It was converted to the new JSON-style. Change-Id: Ie51b1c375c5940856ec76a5770df3c6bd18a3eba
* | | | | Merge "Add server test for image and flavor lookups"Jenkins2017-01-261-15/+49
|\ \ \ \ \ | |/ / / /
| * | | | Add server test for image and flavor lookupsDean Troyer2017-01-251-15/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Review Ia66e44e530799ce6531922dcf6a84e38528c8725 changes OSC's server commands to use the image client rather than compute clirnt (yay!) but we never really tested any of this in functional tests. This review adds a simple functional test (in the new style) to watch the client change; it passes locally for me without the client change, due to timing we went ahead and merged that first. Change-Id: I5529f412578c50090e70d17aa0129217bf803fed
* | | | | Merge "Fix Identity functional tests to not require OS_AUTH_URL"Jenkins2017-01-262-4/+4
|\ \ \ \ \
| * | | | | Fix Identity functional tests to not require OS_AUTH_URLDean Troyer2017-01-252-4/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Identity functional tests had an assumption that OS_AUTH_URL would always be present, but when running the functional tests and only setting OS_CLOUD (using clouds.yaml for creds) this fell down. Change-Id: Ie589d301f866b06d9f8be8deeb953e03bc01cf09
* | | | | Merge "Add meter rule to OSC"Jenkins2017-01-261-0/+108
|\ \ \ \ \
| * | | | | Add meter rule to OSCAnkur Gupta2017-01-231-0/+108
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement network feature meter label rules into OpenStack Client. Allows for creation of rules to meter network traffic. Partially Implements: blueprint neutron-client-metering Change-Id: If18c078d7e80c122583417669f820f02c84d6237
* | | | | change assert_show_fields to not fail on new fieldsSteve Martinelli2017-01-253-26/+18
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | whenever a resource adds a field (which is allowed in our API guidelines), OSC functional tests fail, because we validate the resource keys to a hardcoded list. instead, this change proposes that the logic of assert_show_fields is flipped around, so our hardcoded list acts as a minimum set of values that must appear in the resource. as part of this change, some fields were remove from the constants since they were not actually in the returned data. also, delete unused code `assert_show_structure`. Change-Id: I8c0f0e80ea472f9c7f93c5f1f0ae52048e6cd7da
* | | | Merge "Fix OSC networking commands help errors"Jenkins2017-01-241-0/+7
|\ \ \ \
| * | | | Fix OSC networking commands help errorsRui Chen2017-01-221-0/+7
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC networking commands need to authenticate to get service catalog, then decide to show nova-network or neutron command help message. Fake token and fake auth_type in prepare_to_run_command() casue os-cloud-config use AdminToken auth plugin, but pass all the auth information (include: username, password and so on) to it, that casue the class initialization error. Pop the fake token and url, then try to load auth plugin again to fix the issue. Change-Id: I8b140f0b0a60681fc2a35a013bb0c84ff8cb9589 Closes-Bug: #1650026
* | | | Merge "Functional tests - port"Jenkins2017-01-241-23/+141
|\ \ \ \ | |/ / / |/| | |
| * | | Functional tests - portDean Troyer2017-01-051-23/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework functional tests to remove resource create/delete from setupClass() and teardownClass() methods. * Add tests for more command options Change-Id: Ic77df94fe5980e60c6a67cbf061b9a9dc601518f