openstack-python-openstackc.../openstackclient/tests/unit
Stephen Finucane 6693f555bc quota: Allow 'quota set' to function without volume service
Unlike cinderclient, SDK attempts to connect to a service as soon as you
create a client. A keystoneauth1.exceptions.catalog.EndpointNotFound
exception can be raised if this service does not exist in the service
catalog. Avoid this for the quota and limits commands by first checking
if the service is enabled.

In the process, we rework the 'is_volume_endpoint_enabled' helper we are
using to check for the existence of the service to *not* require a
volume client, since this was causing a chicken and egg issue for us
(and was also pretty much unnecessary).

Change-Id: I56e68f00ea221d689eb7f668e9e5ffa7d1a20184
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #2076229
2024-08-07 11:56:07 +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 Remove python-novaclient 2024-07-18 13:28:51 +01:00
identity Merge "identity: Migrate 'service' commands to SDK" 2024-07-12 14:07:22 +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 "Add volume snapshot unmanage support" 2024-07-23 12:58:03 +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