summaryrefslogtreecommitdiff
path: root/openstackclient/tests/unit/fakes.py
diff options
context:
space:
mode:
authorJude Cross <jucross@blizzard.com>2018-04-02 15:07:25 -0700
committerJude Cross <jucross@blizzard.com>2018-04-03 00:47:00 -0700
commit24b06ef273e193819624fd2e021282d2735977b0 (patch)
tree464eb71b2a22377f1c7bce2b02486f686e2baebc /openstackclient/tests/unit/fakes.py
parent180d012ca728112e518e53230612fe22a722e4b9 (diff)
downloadpython-openstackclient-24b06ef273e193819624fd2e021282d2735977b0.tar.gz
Fix limits show command without Nova and Cinder
This patch implements an endpoint lookup when showing limits. This addresses the issue when showing limits without both Nova and Cinder and will display limits if one is missing. Change-Id: I2214b281e0206f8fe117aae52de2bf4c4e2c6525 Closes-bug: #1707960
Diffstat (limited to 'openstackclient/tests/unit/fakes.py')
-rw-r--r--openstackclient/tests/unit/fakes.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/fakes.py b/openstackclient/tests/unit/fakes.py
index 65c76b3e..954973ef 100644
--- a/openstackclient/tests/unit/fakes.py
+++ b/openstackclient/tests/unit/fakes.py
@@ -140,6 +140,8 @@ class FakeClientManager(object):
self.auth_ref = None
self.auth_plugin_name = None
self.network_endpoint_enabled = True
+ self.compute_endpoint_enabled = True
+ self.volume_endpoint_enabled = True
def get_configuration(self):
return {
@@ -155,6 +157,12 @@ class FakeClientManager(object):
def is_network_endpoint_enabled(self):
return self.network_endpoint_enabled
+ def is_compute_endpoint_enabled(self):
+ return self.compute_endpoint_enabled
+
+ def is_volume_endpoint_enabled(self, client):
+ return self.volume_endpoint_enabled
+
class FakeModule(object):