python-openstackclient/openstackclient/tests/functional
melanie witt 72a2477ec0 Fix 'server event list|show' for deleted servers
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
2022-02-09 23:26:25 +00:00
..
common Add network update quota "limit_check" parameter 2021-12-07 17:49:26 +00:00
compute Fix 'server event list|show' for deleted servers 2022-02-09 23:26:25 +00:00
identity Resolve PEP8 2020-05-14 13:53:38 -05:00
image image: Unset properties rather than setting to None 2020-12-22 17:11:32 +00:00
network Support Neutron Local IP CRUD 2022-01-28 17:24:04 +03:00
object Fix functional tests for py3 2019-10-31 00:17:35 +00:00
volume Fix volume set functional test 2022-01-11 07:24:48 +01:00
__init__.py move all functional tests to tests module 2016-09-09 03:29:47 +00:00
base.py tests: Handle removal of block-storage v2 API 2021-07-23 12:51:30 +01:00