openstack-python-openstackc.../openstackclient/tests/unit
Chaemin-Lim 9bcb1c5c00 Fix missing 'options' field in 'user show' command
This patch fixes a bug where the 'options' field was missing from
the output of the 'openstack user show' command since v7.0.0.

The issue was caused by the 'options' field not being included in
the column list in the _format_user function. This field is important
as it contains various user settings such as multi-factor authentication
configurations and password policy exemptions.

This patch:
1. Adds 'options' field to the column list in _format_user function
2. Updates all affected unit tests to include this field
3. Uses getattr() to safely handle cases where the options field may be absent

Without this fix, users cannot see important options like multi-factor
authentication settings through the CLI, which could lead to security
configuration issues being overlooked.

Closes-Bug: #2084946
Change-Id: I4319268ad4310e6164eb8e65664d73f9b32cdd78
2025-05-20 23:46:39 +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 Merge "Add a column to all_projects tag of server list cmd" 2025-05-19 14:17:25 +00:00
identity Fix missing 'options' field in 'user show' command 2025-05-20 23:46:39 +09:00
image tests: Simplify mocking in image tests 2025-05-19 13:46:27 +00:00
integ Prepare for ruff bump 2025-03-19 12:04:39 +00:00
network network: Allow multiple FIP filter opts 2025-05-19 14:07:37 +01:00
object Prepare for ruff bump 2025-03-19 12:04:39 +00:00
volume volume: Migrate 'volume delete' to SDK 2025-05-19 13:20:22 +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