openstack-python-openstackc.../openstackclient/tests/functional/compute/v2
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
..
__init__.py move all functional tests to tests module 2016-09-09 03:29:47 +00:00
common.py volume functest: ensure snapshots deleted when volume delete 2017-06-06 01:14:20 +00:00
test_aggregate.py Refactor AggregateTests 2019-11-05 21:32:15 +00:00
test_flavor.py Fix formatting of the flavor properties 2020-11-02 15:09:09 +01:00
test_keypair.py Fix functional tests for py3 2019-10-31 00:17:35 +00:00
test_server.py Switch openstack server remove port/network to using sdk 2021-11-29 14:31:07 +00:00
test_server_event.py Fix 'server event list|show' for deleted servers 2022-02-09 23:26:25 +00:00
test_server_group.py compute: Fix 'server group * -f yaml' output 2021-01-06 12:02:25 +00:00