openstack-python-openstackc.../openstackclient/tests/unit
waf 3909e93301 evacuate: respect original SHUTOFF state in --wait completion
When running `openstack server evacuate --wait`, the command would hang
indefinitely if the instance was originally in SHUTOFF state, because
only “ACTIVE” was treated as a successful completion. We now capture
the server’s status before evacuation and dynamically include
“SHUTOFF” in the `success_status` list if the instance was already
shut off. This ensures that a shutoff instance is accepted as a valid
completion without requiring manual intervention.

Unit tests have been added and updated to cover both:
- pre-evacuation ACTIVE → success_status=['active']
- pre-evacuation SHUTOFF → success_status=['active','shutoff']

Closes-Bug: #2103426
Change-Id: I86ad1cd173a144b16fde1dbac87819fab2d7a50a
2025-05-21 16:52:24 +09:00
..
api tests: Rename 'compute_sdk_client' -> 'compute_client' 2025-04-03 16:39:04 +01:00
common tests: Rename 'compute_sdk_client' -> 'compute_client' 2025-04-03 16:39:04 +01:00
compute evacuate: respect original SHUTOFF state in --wait completion 2025-05-21 16:52:24 +09:00
identity identity: Migrate 'endpoint' commands to SDK 2025-03-31 16:58:27 -07:00
image image: Migrate 'create image' volume calls to SDK 2025-04-04 18:11:27 +01:00
integ Prepare for ruff bump 2025-03-19 12:04:39 +00:00
network tests: Stop returning FakeResource in compute tests 2025-04-14 16:43:22 +01:00
object Prepare for ruff bump 2025-03-19 12:04:39 +00:00
volume tests: Remove sdk prefix 2025-04-14 16:27:32 +01:00
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
fakes.py quota: Allow 'quota set' to function without volume service 2024-08-07 11:56:07 +00:00
test_shell.py Prepare for osc-lib changes 2025-04-01 13:39:50 +01:00
utils.py compute: Add server create --no-security-group option 2024-11-29 10:33:18 +00:00