summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Merge "Error in the return of command 'volume qos create'"Jenkins2017-01-211-2/+2
|\ \
| * | Error in the return of command 'volume qos create'jiahui.qiang2017-01-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixed a 'volume qos create' display mistake in argument of 'specs'[1]. For command such as: $ openstack volume qos create hello [1]https://bugs.launchpad.net/python-openstackclient/+bug/1656767 Closes-bug:#1656767 Change-Id: Ia9fce833d318d9b52b97c12cfb89e2d3c5465fbe
* | | Merge "Functional test for volume snapshot"Jenkins2017-01-191-41/+198
|\ \ \
| * | | Functional test for volume snapshotjiahui.qiang2017-01-171-41/+198
| | | | | | | | | | | | | | | | | | | | | | | | Refactor functional tests in volume snapshot. Change-Id: I2fcc468096b3a26c83b8af1e379a62c80eb9c63e
* | | | Fix functional test for creating subnetHuanxuan Ao2017-01-181-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subnet create failed by some bad random subnet range, so retry it with new random range when the test failed. Change-Id: If528ff419b51dd5c5232f81d4b26abae542bd820
* | | | Merge "Fix quota set command error for SDK > 0.9.10"Jenkins2017-01-171-3/+0
|\ \ \ \
| * | | | Fix quota set command error for SDK > 0.9.10Huanxuan Ao2017-01-151-3/+0
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A bug in OpenStack SDK 0.9.11 and 0.9.12 that causes quota set command to fail. This can be removed when the proposed SDK fix (https://review.openstack.org/#/c/419911/) is released and in the minimum SDK version in global requirements. Closes-Bug: #1655445 Change-Id: I63132f5f762f0120282f8b92e72512763063e3c6
* | | | Merge "functional test for volume"Jenkins2017-01-171-101/+204
|\ \ \ \ | |_|/ / |/| | |
| * | | functional test for volumejiahui.qiang2017-01-091-101/+204
| |/ / | | | | | | | | | | | | | | | | | | | | | Rework functional tests to remove resource create/delete from setupClass() and teardownClass() methods. Add test for more command options Change-Id: I2b6ad1fce26f04c11ed43f8d73515fde4a7d09af
* | | Merge "Update functional test for aggregate."Jenkins2017-01-171-3/+43
|\ \ \ | |/ / |/| |
| * | Update functional test for aggregate.zhiyong.dai2017-01-161-3/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following functional tests : option: "--no-property" command: "aggregate set --zone", "aggregate add host", "aggregate remove host". Change-Id: Ia9c31facb5f0f5b92b8df950fd4021b8ecc924c5
* | | Merge "Fix quota show --default command"Jenkins2017-01-151-3/+0
|\ \ \
| * | | Fix quota show --default commandDean Troyer2017-01-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Work around a bug in OpenStack SDK 0.9.11 and 0.9.12 that causes quota show --default to fail. This can be removed when the proposed SDK fix (https://review.openstack.org/420301) is reelased and in the minimum SDK version in global requirements. quota set --network is still broken, I can't fix it at the moment... Closes-bug: 1656572 Change-Id: Ice77e14782c33e672176afbab36bba95b73d7a11
* | | | unskip port testSteve Martinelli2017-01-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | seems like we fixed this one when fixing other tests but never unskipped it. Change-Id: Id1a3d11b581b6f72ad62a8699899b6163c3870bb
* | | | Merge "Use git+file urls instead of directories"Jenkins2017-01-141-4/+5
|\ \ \ \
| * | | | Use git+file urls instead of directoriesMonty Taylor2017-01-141-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The /opt/stack/new directories are owned by the wrong user, so python setup.py egg_info fails because it can't create the egg_info dir. Changing the invocation to use git+file:// urls solves the problem. Additionally, make a correction to test collection. Change-Id: I39da0b26417dce1a72b15dedc02d10284329307f
* | | | | Merge "Fix network functional tests for sdk 0.9.12"Jenkins2017-01-141-104/+125
|\ \ \ \ \
| * | | | | Fix network functional tests for sdk 0.9.12Steve Martinelli2017-01-141-104/+125
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it seems the SDK returns "is_default", but doesn't actually set it based on --default or --is-default I already had these functioanl tests mostly converted to JSON, so I dumped that in here too to make the is_default stuff cleaner. Change-Id: I47ca62f57c73aa7fa984ca54742fc86b6bb837c4
* | | | | Merge "Fix floating IP delete and show by IP"Jenkins2017-01-141-6/+0
|\ \ \ \ \
| * | | | | Fix floating IP delete and show by IPDean Troyer2017-01-141-6/+0
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 subnet creating failure in functional testHuanxuan Ao2017-01-141-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Noticed sometimes floating ip func test failed[1]. The first mumber of the address seems like cannot bigger than 223. So specify subnet ranges as the random number between 0 to 233, maybe it will safer for our functional tests. [1]: http://logs.openstack.org/50/418650/12/check/gate-osc-dsvm-functional-ubuntu-xenial/e163f68/console.html#_2017-01-14_06_58_35_930306 Change-Id: I44a23bce851dcf2009c8d77059cf75ed80145fb0
* | | | Merge "fix functional tests for network agents"Jenkins2017-01-131-4/+0
|\ \ \ \
| * | | | fix functional tests for network agentsSteve Martinelli2017-01-131-4/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | As of SDK v0.9.11 the get_agent method no longer supports the "ignore_missing" parameter. Change-Id: Id655bf8499ed1a102a6bf583927cf66139581ab0
* | | | Fix security group rule list for NEtwork v2Dean Troyer2017-01-131-3/+0
|/ / / | | | | | | | | | | | | | | | | | | Fix the formatting of Port Range in the security group rule list command for Network v2 to handle SDK changes. Change-Id: Id954cbfaedbb74f60125ebda91f80db751759933
* | | unskip network qos rule type functional testSteve Martinelli2017-01-121-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with the SDK at 0.9.12 the below test fails with: 'minimum_bandwidth' not in +-----------------+ | Type | +-----------------+ | dscp_marking | | bandwidth_limit | +-----------------+ So remove 'minimum_bandwidth' from the asserted fields. Change-Id: I24ff691ae5a946d901afa763973305025829280b Closes-Bug: 1653137
* | | Merge "Add support for Network QoS rule commands"Jenkins2017-01-112-0/+186
|\ \ \
| * | | Add support for Network QoS rule commandsRodolfo Alonso Hernandez2017-01-092-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 support for Glance 'update image members' feature"Jenkins2017-01-111-0/+22
|\ \ \ \
| * | | | Add support for Glance 'update image members' featureJordan Pittier2017-01-041-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | add support for running tests with master dependenciesSteve Martinelli2017-01-111-0/+46
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | we can create a new infra job that points to the new test hook, which should install the master version of the SDK, osc-lib and os-client-config. Change-Id: Ib6391893b2302bdc514525d5ddda886fe8c60100
* | | | Fix Octavia gate breakage caused by _get_columns()Nir Magnezi2017-01-092-4/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Functional tests - flavor"Jenkins2017-01-081-27/+200
|\ \ \