summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Fix: Restore output 'VolumeBackupsRestore' object is not iterablewhoami-rajat2019-05-221-0/+58
| | | | | | | | | | | | VolumeBackupsRetore object has '_info' attribute which contains the output data of the restore command which should be returned instead of the 'VolumeBackupsRestore' object. Change-Id: I64b75649c1ac9c24e05a197f7280975564b4d386 Story: 2004740 Task: 28811 (cherry picked from commit 24255ad0dde608a19d371a27c13714098097f185)
* Default --nic to 'auto' if creating a server with >= 2.37Matt Riedemann2018-10-251-4/+6
| | | | | | | | | | | | | | | Compute API version >= 2.37 requires a 'networks' value in the server create request. The novaclient CLI defaults this to 'auto' if not specified, but the novaclient ServerManager.create python API binding code does not, as it wants clients to be explicit. For the purposes of the OSC CLI, we should follow suit and if the user is requesting OS_COMPUTE_API_VERSION>=2.37 without specific nics, we should just default to 'auto'. Change-Id: Ib760c55e31209223338a4086ff1f4fee88dc6959 Closes-Bug: #1750395 (cherry picked from commit 1008544882fbdae16b045abca05cf3e2e8a14787)
* Fix broken gate jobs3.16.1Fan Zhang2018-09-036-113/+154
| | | | | | | | | | | | | | | | | | | | | | | | This patch aims at fixing the broken gate jobs because of cinder and glance patches [1], [2], [3] and [4]. * Remove parameter `--source-replicated` to drop volume replication v1 support * Address some timing issues with volume transfer requests * Only run Image v1 tests when the test cloud has v1 available * Get tolerant of unexpected additional attributes being returned in Image data [1].https://review.openstack.org/#/c/586293/ [2].https://review.openstack.org/#/c/532503/ [3].https://review.openstack.org/#/c/533564/ [4].https://review.openstack.org/#/c/578755/ Co-Authored-By: Dean Troyer <dtroyer@gmail.com> Co-Authored-By: Monty Taylor <mordred@inaugust.com> Depends-on: https://review.openstack.org/588664 Change-Id: I2a785750e92155185d3344e6116c7f5c6fdd3cbe Signed-off-by: Fan Zhang <zh.f@outlook.com> (cherry picked from commit def83a0e94de2f98e3bd68ee412c0f0a2c316f32)
* Merge "Add command to show all service versions"Zuul2018-07-251-0/+31
|\
| * Add command to show all service versionsMonty Taylor2018-07-231-0/+31
| | | | | | | | | | | | | | | | | | | | Knowing what services and what versions of those services exist on a cloud isn't always a spectacular experience. Add a command that will use get_all_version_data from keystoneauth to produce a report of the available services and the version info for each service. Depends-On: https://review.openstack.org/584944 Change-Id: I84751c175d0c5f6d857a5473d2db6d5f1b41f946
* | Merge "Implement support for project limits"Zuul2018-07-252-0/+235
|\ \
| * | Implement support for project limitsLance Bragstad2018-07-232-0/+235
| | | | | | | | | | | | | | | | | | | | | | | | This commit let's users manage limits via the command line. bp unified-limits Change-Id: I7c44bbb60557378b66c5c43a7ba917f40dc2b633
* | | Merge "Implement support for registered limits"Zuul2018-07-252-0/+221
|\ \ \ | |/ / | | / | |/ |/|
| * Implement support for registered limitsLance Bragstad2018-07-232-0/+221
| | | | | | | | | | | | | | | | | | | | This commit adds support for users to manage registered limits via the command line. bp unified-limits Depends-On: https://review.openstack.org/#/c/574391/ Change-Id: Id8377363f7a3248b45aeeba21d2acc02684a0305
* | Slow down and retry aggregate create/delete to lessen raceDean Troyer2018-07-061-0/+18
| | | | | | | | | | Change-Id: I676894c1bfd3156313d88e6457250b9ff226118b Signed-off-by: Dean Troyer <dtroyer@gmail.com>
* | Merge "Retry floating IP tests"Zuul2018-07-061-4/+36
|\ \
| * | Retry floating IP testsDean Troyer2018-07-061-4/+36
| |/ | | | | | | | | | | | | | | test_server_attach_detach_floating_ip() has a test for server add/remove floating IP that seems to be racy, add a retry loop to let neutron and nova do their thing before calling it bad. Change-Id: I999a0d7dae1706d746053bafb7ab4e3b791d0042
* | Merge "Add ability to filter image list by tag"Zuul2018-06-291-7/+22
|\ \ | |/ |/|
| * Add ability to filter image list by tagAdam Harwell2018-06-281-7/+22
| | | | | | | | Change-Id: I2e222d3e69df9d8d7cd472663caaee31bedd848c
* | Fix the `role implies list` command.Sami MAKKI2018-06-242-0/+38
| | | | | | | | | | | | | | | | | | | | The code was calling an unexisting function which never existed. The module refers now to the correct `InferenceRuleManager`. It also allows the compatibility with the future python-keystoneclient in which the compatibility method will be removed from the RoleManager. Change-Id: I08f785dc9e840da2e16915683eecfe49189c44b3
* | Fix volume type functional testsDean Troyer2018-06-223-77/+175
|/ | | | | | | Convert functional VolumeTypeTests to not use class methods for setup. Depends-On: https://review.openstack.org/577147 Change-Id: I855583ad1a50bf5f5046acdb85e977ab9e3c45d2
* Make max_burst_kbps option as optional for bw limit QoS ruleSławek Kapłoński2018-05-251-1/+0
| | | | | | | | | | Attribute max_burst_kbps of QoS bandwidth limit rule in Neutron's is optional in API so it should be also optional on client's side. Change-Id: Ie085b73fa885ff12f9ac080666cf3ca6a09b632a Related-Bug:#1770622 Task: 19658 Story: 2002017
* Update command test for volume.v3Monty Taylor2018-05-181-1/+1
| | | | | | | | The default cinder version in devstack changed to v3 in https://review.openstack.org/#/c/566747/which breaks this test. Change the test to test what's going to happen. Change-Id: Iff4d8b47812a86d21bf5dbdddbd642b9d63ff8fe
* Fix functional job failedDongcan Ye2018-04-201-3/+14
| | | | | | | | | | After Neutron patch I3c93818002c2d7753454547231ba08544b6fa1c0 merged, the default value of segment description is an empty string. This patch will determine whether the Neuron shim extension standard-attr-segment supported. Change-Id: I68a3c018f03e5bb53bd637844ac9d7742a765db0
* Clean up W503 and E402 pep8 errorsSean McGinnis2018-04-158-240/+215
| | | | | | | | | | | | pycodestyle 2.40 and later enforce these rules that were not previously enforced. Rather than just skipping them, this cleans up the trivial instances of these violations. This does also include some other updates that were not triggering errors in an attempt to keep some of the style consistent. Change-Id: Id7c0a6b8f1f835e69d844b000e3ed751852ada63 Closes-bug: #1762803
* Merge "Add CRUD support for application credentials"Zuul2018-03-141-0/+143
|\
| * Add CRUD support for application credentialsColleen Murphy2018-01-301-0/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for creating, retrieving, and deleting application credentials. Application credentials do not support updates. In order to provide a positive user experience for the `--role` option, this patch also includes an improvement to the `identity.common._get_token_resource()` function that allows it to introspect the roles list within a token. This way there is no need to make a request to keystone to retrieve a role object, which would fail most of the time anyway due to keystone's default policy prohibiting unprivileged users from retrieving roles. bp application-credentials Change-Id: I29e03b72acd931305cbdac5a9ff666854d05c6d7
* | Cleanup error messages on failureMatthew Treinish2018-02-281-2/+6
| | | | | | | | | | | | | | | | When test_server_commands_main_help() fails it dumps a ton of unformatted text on an exception message. This commit attempts to clean it up to make it easier to read. Change-Id: I793e6337728a22302a5a87938dbec60d7f2320d8
* | Make osc-functional-devstack-tips actually use tipsMonty Taylor2018-02-051-1/+1
|/ | | | | | | | | | | | | | | | | The base job has tox_install_siblings: false - which we want. But that means we need tox_install_siblings: true on the tips job. While we're at it - add fetch-tox-output so that we have tox log files in the fetched build output for easier verification of what wound up installed. Don't look for ResourceNotFound string in test The string ResourceNotFound is not in the error string anymore. Look for the text that is. Depends-On: https://review.openstack.org/541033 Change-Id: Id6de1485bcafb41f238f3e74277094ce64a6acf4
* Merge "Allow port list to shown undefined attributes"Zuul2017-12-311-0/+10
|\
| * Allow port list to shown undefined attributesAkihiro Motoki2017-11-241-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At now, OSC command implementation extracts resource attributes based on a predefined column list, so if a user specifies an unknown attribute not defined in the column lists, such attribute will be ignored. In case of 'port list', the neutron port defines many attributes and it is not a good idea to show all attributes even in the long mode from the perspective of user experience. This commit consumes osc_lib.utils.calculate_headers_and_attrs() function to show undefined port attributes if requested in -c option. Closes-Bug: #1707848 Depends-On: I6c6bc3c6e3c769c96869fd76b9d9c1661280850e Change-Id: I130a6aed41d80603698b6cab0c9a1d1dc59df743
* | Switch to use stestr directlyMasayuki Igawa2017-12-271-1/+1
| | | | | | | | | | | | | | | | This commit makes to use stestr instead of ostestr directly. ostestr>1.0.0 has started to use stestr instead of testrepository. So there is no reason to use ostestr anymore. Change-Id: I6327d50c9f6dd19f1de24b9b51532104fb3e916e
* | Merge "Add support for endpoing filter commands"Zuul2017-12-132-0/+43
|\ \ | |/ |/|
| * Add support for endpoing filter commandsJose Castro Leon2017-11-212-0/+43
| | | | | | | | | | | | | | | | | | Implements the commands that allow to link and endpoint to a project for endpoint filter management. Implements: blueprint keystone-endpoint-filter Change-Id: Iecf61495664fb8413d35ef69f07ea929d190d002
* | Prepare for os-clinet-config to go awayDean Troyer2017-11-161-1/+0
|/ | | | | | | We used that module in a test functional for module list, it is being absorbed into python-openstacksdk and having it listed in this test breaks -tips jobs. Change-Id: I98fdf5a5d1b3c6e30cb4c5f5fec3dd8e43e53145
* Merge "Display Network QoS rule type details"Zuul2017-11-061-0/+7
|\
| * Display Network QoS rule type detailsSławek Kapłoński2017-11-051-0/+7
| | | | | | | | | | | | | | | | | | | | Neutron API now supports getting details of supported QoS rule type. This patch adds support for this feature to OpenStack client. Change-Id: I74d16563ce2236a7c899f5994f1dab43ace02138 Depends-On: I448b5d4f8e4ef42eafe50d9d6c63d0be666f98fc Related-Bug: #1686035
* | Merge "Add missing parameters on openstack server rescue"Zuul2017-10-271-1/+12
|\ \ | |/ |/|
| * Add missing parameters on openstack server rescueJose Castro Leon2017-10-271-1/+12
| | | | | | | | | | Change-Id: I27afca9e826378dbcb7feb7528e0c65c528b04b0 Closes-Bug: #1703278
* | Native DevStack jobsDean Troyer2017-10-242-106/+0
| | | | | | | | | | | | | | Convert legacy DevStack jobs to native Zuul v3 form, plus some test-job-related docs updates. Change-Id: Ia8c08be81605da885b9eee799fc58129305dfc41
* | Add wrapper around ostestrMonty Taylor2017-10-231-0/+16
| | | | | | | | | | | | | | The functional tests assume that an openrc file has been sourced. Make a simple wrapper that will do that. Change-Id: I42584aaebcbca99a8c922f6ff90c8bbce57bbfbb
* | Attempt to de-race qos policyDean Troyer2017-10-181-3/+7
|/ | | | | | | | | We're getting about 1-in-6 failures on qos policy delete now, with the message that the policy is in use by a network. It shouldn't be, this is possibly due to the small window where the policy is set as the default. Let's remove that and shore up the test using --share instead. Change-Id: I8d669bd3c5c88dadd2927aee89e5ef72cf4001c4
* Switch to $USER in post_test_hooksIan Wienand2017-10-162-8/+8
| | | | | | | As a first step to zuul migration, switch to $USER from a static "jenkins" username. Change-Id: I26ed12133c75a69182c56b6ecf483fcdc37d98f3
* Merge "Add "volume service list --host" functional test case"Jenkins2017-09-261-2/+12
|\
| * Add "volume service list --host" functional test caselihaijing2017-09-191-2/+12
| | | | | | | | Change-Id: I467252d9fc6083fb891a8701d7992f16ce42556f
* | Merge "Update the documentation link for doc migration"Jenkins2017-09-262-2/+2
|\ \
| * | Update the documentation link for doc migrationlingyongxu2017-09-212-2/+2
| |/ | | | | | | | | | | | | This patch is proposed according to the Direction 10 of doc migration(https://etherpad.openstack.org/p/doc-migration-tracking). Change-Id: Ieca93d77bfc5e54486312f16122cc12c5bda0934
* | Merge "Add functional test cases for "volume qos associate/disassociate""Jenkins2017-09-191-1/+93
|\ \
| * | Add functional test cases for "volume qos associate/disassociate"lihaijing2017-09-181-1/+93
| |/ | | | | | | | | Change-Id: I07b25bebb8a0ea18cdf042357be65c4ec6e1cfed Closes-Bug: #1717874
* | Unroll the network qos policy functional testsDean Troyer2017-09-171-33/+42
|/ | | | | | | These seem to have gotten a bit racy in the last revision, just do it the long way now. Change-Id: I3748b8b4f264dbfa8c991b32653682e5c86eeb4c
* Merge "Attempt to work around chronically failing server issues with ↵Jenkins2017-09-162-4/+15
|\ | | | | | | aggregates and qos"
| * Attempt to work around chronically failing server issues with aggregates and qosDean Troyer2017-09-152-4/+15
| | | | | | | | | | | | | | | | So yeah, this is not kosher for functional tests, but we're testing the client interaction, not the raciness of Nova or Neutron. Failure to delete is not our problem. Change-Id: I21043f1de0fbacee1aec63110fb12a7cff42e0a0
* | Fix subunit collection in functional tests with ostestr>=1.0.0Matthew Treinish2017-09-152-0/+16
|/ | | | | | | | | With the release of os-testr 1.0.0 stestr is used internally and because of that the repository dir and commands to get subunit are different. This commit updates the post-test hook to get the subunit stream if ostestr>=1.0.0 is used. Change-Id: I2cce7f4780ce418398b17a5848def9072372841e
* Skip Volume v1 functional tests if v1 not presentDean Troyer2017-09-121-3/+24
| | | | | | | | Volume v1 is gone in Queens Just skip it for now until DevStack does not create a v1 endpoint Change-Id: I2aa2f78b0d5c8ac2048c922c7835e5c4574028cc
* Merge "Convert remaining network functional tests to JSON"Jenkins2017-08-252-55/+39
|\