summaryrefslogtreecommitdiff
path: root/openstackclient/tests
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
* 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-143-25/+72
|\ \ \
| * | | Fix floating IP delete and show by IPDean Troyer2017-01-143-25/+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 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-132-5/+1
|\ \
| * | fix functional tests for network agentsSteve Martinelli2017-01-132-5/+1
| |/ | | | | | | | | | | | | 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
* 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-115-73/+1278
|\ \
| * | Add support for Network QoS rule commandsRodolfo Alonso Hernandez2017-01-095-73/+1278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-112-0/+55
|\ \ \ \
| * | | | Add support for Glance 'update image members' featureJordan Pittier2017-01-042-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "add support for running tests with master dependencies"Jenkins2017-01-111-0/+46
|\ \ \ \ \
| * | | | | 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
* | | | | | 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-093-4/+4
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|\ \ \ \ \
| * | | | | Functional tests - flavorDean Troyer2017-01-061-27/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rework functional tests to remove resource create/delete from setupClass() and teardownClass() methods. * Add tests for more command options * Use JSON output Change-Id: Ib99ef954fe8e1170c7445940180d80b8b9c0a92c
* | | | | | Merge "OSC Network Meter"Jenkins2017-01-083-0/+451
|\ \ \ \ \ \
| * | | | | | OSC Network MeterAnkur Gupta2017-01-013-0/+451
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 network service provider functional test"Jenkins2017-01-071-4/+1
|\ \ \ \ \ \ \
| * | | | | | | Fix network service provider functional testHuanxuan Ao2017-01-061-4/+1
| | |_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SDK refactor broken network service provider functional test, tested this command works, but there is a error in the funtional test, so fix it. Change-Id: I783c58cedd39a05b665e47709b2b5321871e558b Closes-Bug: 1653138
* | | | | | | add domain id to expected IdP fields, unskip testsSteve Martinelli2017-01-072-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit Id18b8b2fe853b97631bc990df8188ed64a6e1275 added domain IDs to an Identity provider, our functional tests have a hard match on what to expect when 'showing' an idp, the domain ID was missing. Change-Id: I87a1fd762918551c533668a9aa94f7c6268b79d6
* | | | | | | skip tests related to SDK 0912 and keystone IdP changeSteve Martinelli2017-01-078-1/+38
| |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the gate is super wedged, i will skip tests and unskip them as necessary. Change-Id: Ia4469738c876ec1293f91b96dcc7d15365f4f37d
* | | | | | Merge "Fix "ip availability show" command"Jenkins2017-01-062-4/+8
|\ \ \ \ \ \
| * | | | | | Fix "ip availability show" commandHuanxuan Ao2017-01-062-4/+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 "Beef up address scope functional tests"Jenkins2017-01-041-21/+127
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Beef up address scope functional testsDean Troyer2016-12-301-21/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to get more thorough in our functional testing, so start by adding tests for all create and set options, check return values. This also removes most of the setupClass() and teardownClass() methods as they held common state that was subject to race conditions when running tests in parallel. Change-Id: Ib337f9e9d16b4183bb319b58cbe943045f365ff2
* | | | | Merge "Beef up network functional tests"Jenkins2017-01-041-24/+235
|\ \ \ \ \
| * | | | | Beef up network functional testsDean Troyer2016-12-301-24/+235
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to get more thorough in our functional testing, so start by adding tests for all create and set options, check return values. This also removes most of the setupClass() and teardownClass() methods as they held common state that was subject to race conditions when running tests in parallel. Change-Id: I4179f493cea971b7c576ffbf501330b5c57f52f3