summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Switch list server volume to sdk"Zuul2023-02-211-3/+0
|\
| * Switch list server volume to sdkRitvik Vinodkumar2022-12-151-3/+0
| | | | | | | | | | | | | | Switch the server volume list command from novaclient to SDK. Modified functional test for server add/remove volume. Change-Id: I5b4ab7d0275aec2e02451c5371319ac350af6a5f
* | Merge "Move network trunk commands from python-neutronclient"Zuul2023-01-311-0/+149
|\ \
| * | Move network trunk commands from python-neutronclientelajkat2023-01-161-0/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Network trunk commands originally were added to python-neutronclient, although we can long consider these operations core Networking operations. This patch is not a blind copy but also changes the original code to use openstacksdk python bindings instead of the binding code in python-neutronclient as that is already deprecated. Change-Id: Ic4bc35c296a95d5dae92e9fc1cab3a3fa8f103cd Related-Bug: #1999774
* | | Add qos rule type filteringRodolfo Alonso Hernandez2022-12-101-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two new filter flags to ``openstack network qos rule type list``: - "--all-supported", to return any QoS rule type supported by at least one loaded driver. - "--all-rules", to return all QoS rule types supported by the current version of Neutron server, regardless of the loaded drivers. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/827671 Depends-On: https://review.opendev.org/c/openstack/neutron/+/827683 Related-Bug: #1959749 Change-Id: Ie0622e79ecf7dadd6560fea142352f5a2ed66b74
* | | Merge "Use the SDK in server migration list"Zuul2022-12-151-0/+6
|\ \ \
| * | | Use the SDK in server migration listDaniel Wilson2022-11-301-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update server migration list to use the OpenStack SDK instead of directly using the nova interface. Change-Id: I40dc95ee47e7c33ebf596f8ad437228b4bb0ab33
* | | | Merge "Use the SDK for server show"Zuul2022-12-151-0/+28
|\ \ \ \
| * | | | Use the SDK for server showDaniel Wilson2022-12-111-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the SDK for the server show command. This change modifies a helper function that is used by server show as well as other commands that print information about an individual server. The helper still uses novaclient APIs when additional OpenStack requests are needed since some of its callers are still using the nova client. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/864340 Change-Id: Ic253184ee5f911ec2052419d328260dc4664b273
* | | | | Merge "Fix parameter handling in server add fixed ip cmd"Zuul2022-12-151-0/+56
|\ \ \ \ \
| * | | | | Fix parameter handling in server add fixed ip cmdDr. Jens Harbott2022-12-121-0/+56
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fixed_ip_address parameter needs to be passed in a hash with key "ip_address" in order to be processed by the server, the previous arg was simply being ignored. Added a functional test for better coverage. Closes-Bug: 1998927 Change-Id: I6956d2642d8e80fc10c3739f0a571aa7ba276b1a
* | | | | Create a functional test case for hypervisor list and showAriel-Berkowicz2022-12-141-0/+52
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | This functional test case for hypervisor list and show makes sure it works with the openstackclient sdk. Change-Id: Ibaeaf68d6056fcf904b546f30287c65173b5a368
* | | | Fix functional-tips jobStephen Finucane2022-12-141-5/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | A recent change to cliff [1] means we're now stripping periods when generating the summary line of command help strings. Account for this. [1] https://review.opendev.org/c/openstack/cliff/+/867274 Change-Id: I45b39b9fe38914497505f157e91d84cd2f84f547 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Merge "tests: Convert network tests to use 'parse_output'"Zuul2022-12-0227-892/+1130
|\ \ \
| * | | tests: Convert network tests to use 'parse_output'Stephen Finucane2022-11-2927-892/+1130
| | | | | | | | | | | | | | | | | | | | Change-Id: I93e2a4e0a4c7ec07da0c78a171f3d787125af053 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "tests: Convert compute tests to use 'parse_output'"Zuul2022-12-027-403/+503
|\ \ \ \ | |/ / /
| * | | tests: Convert compute tests to use 'parse_output'Stephen Finucane2022-11-297-403/+503
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib5b2f46639f14877a9ec295b26cae01a05395d4d Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "tests: Convert identity tests to use 'parse_output'"Zuul2022-12-021-7/+7
|\ \ \ \ | |/ / /
| * | | tests: Convert identity tests to use 'parse_output'Stephen Finucane2022-11-291-7/+7
| | | | | | | | | | | | | | | | Change-Id: I10711b911986af0348946f6254cf36773110b0ab
* | | | Merge "tests: Convert volume tests to use 'parse_output'"Zuul2022-12-0219-759/+923
|\ \ \ \ | |/ / /
| * | | tests: Convert volume tests to use 'parse_output'Stephen Finucane2022-11-2919-759/+923
| | | | | | | | | | | | | | | | | | | | Change-Id: Iec8ca873f6bc3993e0ba557f68895d9aefb6f9c6 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | | Merge "tests: Convert image tests to use 'parse_output'"Zuul2022-12-022-125/+120
|\ \ \ \ | |/ / /
| * | | tests: Convert image tests to use 'parse_output'Stephen Finucane2022-11-292-125/+120
| |/ / | | | | | | | | | | | | Change-Id: I5f256d466d503d70d1f380016f9c8f5a0d9e395f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Use the compute SDK in server listDaniel Wilson2022-11-291-1/+1
|/ / | | | | | | | | | | | | | | Update server list to use the compute component of the OpenStack SDK instead of directly using the nova interface. This change depends on SDK version 0.102.0 for automatic client-side query filters. Change-Id: Ib9985812bfd98320b75f3a82bb594a0daa6e4d93
* | tests: Convert more functional tests to use 'parse_output'Stephen Finucane2022-11-086-113/+105
| | | | | | | | | | Change-Id: I1d968181eb196c6df4583c772c67ed58bc7ba585 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | tests: Move json decoding to base test classStephen Finucane2022-11-082-30/+48
| | | | | | | | | | | | | | | | We do this everywhere. Add a simple knob to simplify the pattern. Only one use is migrated initially. The rest will be done separately. Change-Id: Ic3b8958bd4fb1459a8ac3adaff216c2a26628491 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | quota: Deprecate "force" behavior for network quotasStephen Finucane2022-10-111-2/+2
|/ | | | | | | | | | | | In change Idc1b99492d609eb699d0a6bef6cd760458a774f6, we added a '--check-limit' option to enable "no force" behavior for network quotas. This was already the default for compute quotas. Provide a path for harmonizing the behavior of the two options by instead using a '--no-force' option which will become the eventual default for the network quotas also. Change-Id: I25828a3d68e2e900f498e17a0d01fb70be77548e Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* quota: Add 'quota show --usage' optionStephen Finucane2022-09-301-0/+4
| | | | | | | | | | | Provide an more sane way to get usage information for a particular project's quotas. This requires using the 'Lister' command type since the 'ShowOne' command type only allows for simple key-value pair output. We also add a note indicating that the '<project>' argument is optional. Change-Id: Ic7342cf08f024cc690049414c5eef5b9a7594677 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Add address-scope to NDP proxy testselajkat2022-09-091-4/+29
| | | | | Related-Bug: #1987410 Change-Id: I61df81381803ca289f295ab8d7a8f495bb169447
* Add router ndp proxy commandsYang JianFeng2022-08-261-0/+176
| | | | | | Depends-on: https://review.opendev.org/749036 Change-Id: I77e12cc2dfe4000bd5ae6511878c6591f52d9791 Related-Bug: #1877301
* Migrate server_groups to the new APIViolet Kurtz2022-08-021-12/+12
| | | | | | Moved the server_groups to the new API. Change-Id: Ied7bd6f56e277f0c5efcd5ba028765f9be65050f
* Add support for CRUD operations for QoS minimum packet rate rulePrzemyslaw Szczerbik2022-07-011-0/+67
| | | | | | | Closes-Bug: #1922237 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/810364 See-Also: https://review.opendev.org/785236 Change-Id: Ie7e1eb0575fd37121d5097ecbc318d0769ab3db0
* Skip test_quota_network_set_with_force func testDr. Jens Harbott2022-06-281-0/+1
| | | | | | | | | | | This test was added in [0] and it causes a lot of failures, since setting the network quota to 1 will result in quota errors for any other test that is trying to create a network in parallel. We can only run this test in a serial tempest task that would need to be created for such a scenario. Related-Story: 2010110 Change-Id: I6015c181ecabff26bdb1b0c11b0e33ad39e6f083
* Merge "Allow to filter multiple tags for image list"Zuul2022-05-161-1/+7
|\
| * Allow to filter multiple tags for image listDmitriy Rabotyagov2022-05-161-1/+7
| | | | | | | | | | | | | | | | | | Currently in case of passing `--tag` several times, only last one will be picked up for the filtering. In the meanwhile Glance allow option to be repeated multiple times to filter based on the multiple tags. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/789827 Change-Id: I7379d0b0014f0e3d13b02ee5ec6b642a7a5aa7d1
* | Merge "Fix typos"Zuul2022-05-164-8/+8
|\ \ | |/ |/|
| * Fix typosCyril Roelandt2021-10-264-8/+8
| | | | | | | | Change-Id: Idd502c8df21da79ff3b9339870f38378f5337879
* | Merge "tests: Improve logging for executed commands"Zuul2022-05-132-14/+40
|\ \
| * | tests: Improve logging for executed commandsStephen Finucane2021-12-092-14/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're seeing failures in a recently added tests, 'ServerTests.test_server_add_remove_volume' from 'openstackclient/tests/functional/compute/v2/test_server.py'. These failures are likely the result of slow CI nodes, but we don't have enough information in the CI logs to debug them. Starting logging the various commands executed in tests so that we can see these logs if and when tests fail. Change-Id: I4584dc5e6343fe8c8544431a527d8c3c7e7b3c5b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* | | Allow "--force" flag in quota network commandsRodolfo Alonso Hernandez2022-03-171-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | This flag allows to set a new Neutron quota resource limit without checking first the current resource usage. The new limit will be set anyway. This flag was used only by the compute engine. Related-Bug: #1953170 Change-Id: I7084f8208b804236ac99e6842db7a45854ce54d7
* | | Fix 'server event list|show' for deleted serversmelanie witt2022-02-091-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of compute microversion >= 2.21, support for list and show of server events for deleted servers was added. This however wasn't working using the openstackclient because the compute GET /servers/{server_id} will not return a deleted server, so osc_lib.utils.find_resource() fails to find the server and the command bails early. This adds a check for a uuid-like <server> arg and uses it directly if the <server> cannot be found via find_resource(). A note is also added to the command help to indicate that list and show for deleted servers will only work if a server ID is passed (name will not work). Story: 2009841 Task: 44443 Change-Id: Icd33b3b9a3a1855d7893dd111bbb2aca059f45fd
* | | Merge "Support Neutron Local IP CRUD"Zuul2022-02-091-0/+161
|\ \ \
| * | | Support Neutron Local IP CRUDNurmatov Mamatisa2022-01-281-0/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for Neutron Local IP CRUD operations. Partial-Bug: #1930200 Depends-On: https://review.opendev.org/c/openstack/neutron/+/804523 Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/804988 Change-Id: I1095100efb27b8559412469f0a9d07fc0a3db9d5
* | | | Merge "Add network update quota "limit_check" parameter"Zuul2022-02-031-0/+25
|\ \ \ \ | |/ / / |/| | |
| * | | Add network update quota "limit_check" parameterRodolfo Alonso Hernandez2021-12-071-0/+25
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new parameter commands the Neutron server to first check the resource usage before setting the new quota limit. If the resource usage is below the new limit, the Neutron server will raise an exception. Depends-On: https://review.opendev.org/c/openstack/openstacksdk/+/806254 Depends-On: https://review.opendev.org/c/openstack/neutron/+/801470 Partial-Bug: #1936408 Change-Id: Idc1b99492d609eb699d0a6bef6cd760458a774f6
* | | Fix volume set functional testDr. Jens Harbott2022-01-111-0/+1
| |/ |/| | | | | | | | | | | | | | | Sometimes it can happen that when extending a volume it is shown as status "extending" with the original size for a while. Wait for the volume to enter state "available" again before checking the result. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: Ib70cfa1c241ce94426214c7a05c550213f427caa
* | Switch openstack server remove port/network to using sdkDiwei Zhu2021-11-291-11/+83
| | | | | | | | Change-Id: I1540c1f52e9a107dba20eeea9dc323c5510fe2b1
* | Add functional test for server add/remove volume.Diwei Zhu2021-11-261-0/+59
| | | | | | | | Change-Id: I86a76f32790cafcff1d94364fb72f8890a8cb025
* | Switch openstack server add port/network to using sdk.Diwei Zhu2021-11-141-0/+48
|/ | | | | | | | | | | | | The old novaclient.v2.server.Server.interface_attach() method is replaced with proxy.create_server_interface(). In swargs, 'net_id' and 'port_id' are mutual-exclusive, if one of them is given with value, the other one cannot be None, as the API would responde with 400 (None is not string). In unit test, temporary method 'setup_sdk_servers_mock' is added, because other tests are still using the old 'setup_servers_mock'. Functional tests are added. Releasenote is generated. Change-Id: I9899f0509febc5143560a1859ae6344d0a6d1427
* tests: Handle removal of block-storage v2 APIStephen Finucane2021-07-234-30/+44
| | | | | | | | | | | | | | Cinder recently removed their v2 API [1] which is causing the functional tests to fail. Improve our 'is_service_enabled' test helper to use the 'versions show' command, which queries the service catalog and can give us information about the service version as well as answer the more general "is this service available" question. We also resolve a long-standing TODO in the process. [1] https://review.opendev.org/c/openstack/cinder/+/792299 Change-Id: I381069357aa008344e15327adf3a863c0c2e1f04 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>