openstack-python-openstackc.../openstackclient/tests/unit
Johannes Kulik 773b869323 compute: Fix --host in server list for new openstacksdk
With `openstacksdk` 3.2.0 the `host` attribute of an Instance got added
to the `Server` class [0]. With that change, listing servers with the `host`
attribute leads to a query-filter for `compute_host` as expected, but
`openstacksdk` will also filter for the `host` attribute locally after
the results are returned. Since `compute_host` being
`OS-EXT-SRV-ATTR:host` is not the same as `host, this means no results
are returned.

Since we want to keep the old behaviour of filtering by `compute_host`
i.e. the service host name, we need to switch to filter for
`compute_host`. This is already supported in older versions of
`openstacksdk`.

[0] 0f311ff3e2

Change-Id: I0cd32c5b7d6d4d21194f3efdcfb9b205dea6a91e
Closes-bug: #2074200
(cherry picked from commit ffa683ab4e)
2024-10-03 10:48:24 +00:00
..
api network: Replace use of in-tree API client 2024-07-09 18:19:36 +01:00
common Respect --skip-resource when deleting. 2024-07-25 20:20:56 +01:00
compute compute: Fix --host in server list for new openstacksdk 2024-10-03 10:48:24 +00:00
identity Merge "identity: in service set command, don't pass the enable option when it is None" into stable/2024.2 2024-10-02 17:26:48 +00:00
image trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
integ trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
network Merge "Add tests for 'default security group rule create'" 2024-07-23 15:25:51 +00:00
object trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
volume Merge "Show Created At column for volume backups" 2024-08-09 12:20:45 +00: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 trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
utils.py compute: Migrate tests for ShowServer to SDK objects 2024-07-02 17:51:49 +01:00