summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Merge "volume: Add 'volume qos set --no-property' option"HEADmasterZuul2023-05-173-15/+33
|\
| * volume: Add 'volume qos set --no-property' optionStephen Finucane2023-05-173-15/+33
| | | | | | | | | | | | | | | | | | Supporting "--no-property" option will apply user a convenient way to clean all properties of volume qos in a short command. The patch adds "--no-property" option in "volume qos set" command and update related test cases and docs. Change-Id: I1fb5b4f0a923bbf557a3af3f63809bde9e84ffd4
* | compute: Fix bug with start/stop serverStephen Finucane2023-05-171-2/+42
|/ | | | | | | | | | | A mistake was introduced during the conversion from novaclient to SDK in change I5ebfa6b2468d5f20b99ea0eab1aea9377be09b8c. Fix the issue and add functional tests to prevent it being reintroduced. Change-Id: I6b314eab31bcf452e88b8b6a239ac2e296497cb9 Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Story: 2010750 Task: 48004
* Blacken everything elseStephen Finucane2023-05-101-4/+7
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I356643d06b2cd408ccaedfe02b858aea55388949 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstack.commonStephen Finucane2023-05-105-63/+58
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: Ifcb3c798666d74d596b8ecb3d6d507f782de7ba5 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.imageStephen Finucane2023-05-102-116/+57
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I6420ec6fd550903b03083b9b1f8391511913c86f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.objectStephen Finucane2023-05-102-16/+26
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I6658e76d7d1f93149f24fcab28d593195b37779f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.identityStephen Finucane2023-05-1025-534/+792
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I2eeade1ce6653be8e9179ecc40105182c5ff5f16 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.networkStephen Finucane2023-05-1028-925/+909
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I8048746dbc2ef0cb582f68934734db4c1153d779 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.volumeStephen Finucane2023-05-1021-862/+622
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: Ic318617c67ab7ce6527f9016b759a1d4b0b80802 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* Blacken openstackclient.computeStephen Finucane2023-05-108-455/+403
| | | | | | | | | | Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I9af45c062d179ab3dc2a5e969e1c467932753a2b Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
* compute: Generate SSH keypairs ourselvesStephen Finucane2023-05-021-5/+9
| | | | | | | | | | Starting with the 2.92 microversion, nova will no longer generate SSH keys. Avoid breaking users by generating keypairs ourselves using the cryptography library, which was already an indirect dependency through openstacksdk. Change-Id: I3ad2732f70854ab72da0947f00847351dda23944 Implements: blueprint keypair-generation-removal
* Migrate 'server event *' commands to SDKHuda Irshad2023-04-201-4/+0
| | | | | | | | | This one is tricky since the ServerAction resources includes a nested ServerActionEvent resource which requires a custom formatter in order for things to render as expected. Change-Id: I3d24851303222af9efcee8d7e1565278b1018efd Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
* 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